(34.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (23.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (71.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (72.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kIxL/dZMaVJTWBr4W2qgleXTF0FNJwRyi6T63aw4kb7A5sNDaVomm"], ["created_at", "2019-11-21 15:40:59.893519"], ["updated_at", "2019-11-21 15:40:59.893519"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (20.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:40:59.968341"], ["updated_at", "2019-11-21 15:40:59.968341"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 12:41:00 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:00.018197"], ["last_sign_in_at", "2019-11-21 15:41:00.018197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:00.018916"], ["id", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
SQL (34.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1], ["room_id", 1], ["created_at", "2019-11-21 15:41:00.067385"], ["updated_at", "2019-11-21 15:41:00.067385"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 62ms (ActiveRecord: 36.1ms)

Appointment Load (10.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GHyqo9ppOJSlzdmXnH0Auu1EO37qv2OHBFmj3S/fQ7RKAU50T.y96"], ["created_at", "2019-11-21 15:41:00.152539"], ["updated_at", "2019-11-21 15:41:00.152539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:00.154865"], ["updated_at", "2019-11-21 15:41:00.154865"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 12:41:00 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:00.157594"], ["last_sign_in_at", "2019-11-21 15:41:00.157594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:00.158330"], ["id", 2]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"2"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2], ["room_id", 2], ["created_at", "2019-11-21 15:41:00.163397"], ["updated_at", "2019-11-21 15:41:00.163397"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xSg2DTVJvvEXhyXctMI16eUuxWXCQgMBkM776G18e/LQr4t11rU0i"], ["created_at", "2019-11-21 15:41:00.172239"], ["updated_at", "2019-11-21 15:41:00.172239"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:00.174676"], ["updated_at", "2019-11-21 15:41:00.174676"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 12:41:00 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:00.177498"], ["last_sign_in_at", "2019-11-21 15:41:00.177498"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:00.178051"], ["id", 3]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"3"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 3], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VDrzx6z34wPbO2ZceyC0re1qePIaaojfKqYplOUEnzWEr0g1UV11a"], ["created_at", "2019-11-21 15:41:00.187412"], ["updated_at", "2019-11-21 15:41:00.187412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:00.189594"], ["updated_at", "2019-11-21 15:41:00.189594"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 12:41:00 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:00.192255"], ["last_sign_in_at", "2019-11-21 15:41:00.192255"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:00.192823"], ["id", 4]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"4"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UB4SGaGv3sAvjOY75pVk1u6qF9L43YFf9tQUqR6UUuxQEPGlpqhWS"], ["created_at", "2019-11-21 15:41:00.203320"], ["updated_at", "2019-11-21 15:41:00.203320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:00.205506"], ["updated_at", "2019-11-21 15:41:00.205506"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 5], ["room_id", 5], ["created_at", "2019-11-21 15:41:00.209997"], ["updated_at", "2019-11-21 15:41:00.209997"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/5” for 127.0.0.1 at 2019-11-21 12:41:00 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:00.212505"], ["last_sign_in_at", "2019-11-21 15:41:00.212505"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:00.213145"], ["id", 5]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"5"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 5], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '5')
Rendered appointments/show.html.erb within layouts/application (77.0ms)
Rendered layouts/_header-user.html.erb (2.8ms)

Completed 200 OK in 13727ms (Views: 13667.9ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1WBmYqnYQhxJBV6f762fQuijnOuF3aDklID66Z3VrKcwAj9nSS3ba"], ["created_at", "2019-11-21 15:41:13.951085"], ["updated_at", "2019-11-21 15:41:13.951085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:13.953445"], ["updated_at", "2019-11-21 15:41:13.953445"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 6], ["room_id", 6], ["created_at", "2019-11-21 15:41:13.957955"], ["updated_at", "2019-11-21 15:41:13.957955"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 6], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 6], ["room_id", 6], ["created_at", "2019-11-21 15:41:13.962721"], ["updated_at", "2019-11-21 15:41:13.962721"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 12:41:13 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:13.965143"], ["last_sign_in_at", "2019-11-21 15:41:13.965143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:13.965648"], ["id", 6]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 6]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 84ms (Views: 4.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2oqIzOfkTiXC68GhWFxf.OHmHvgY6KqR4uzgX6Tfr6q4iygekMCHq"], ["created_at", "2019-11-21 15:41:14.059531"], ["updated_at", "2019-11-21 15:41:14.059531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.062597"], ["updated_at", "2019-11-21 15:41:14.062597"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 7], ["room_id", 7], ["created_at", "2019-11-21 15:41:14.066961"], ["updated_at", "2019-11-21 15:41:14.066961"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 7], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 7], ["room_id", 7], ["created_at", "2019-11-21 15:41:14.072433"], ["updated_at", "2019-11-21 15:41:14.072433"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.075896"], ["last_sign_in_at", "2019-11-21 15:41:14.075896"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.076536"], ["id", 7]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 7]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZAh0SDawSCZOvh2jX8HXHudc6p6JQJqrIhl/UG3PeeLZ4Mt49ze7K"], ["created_at", "2019-11-21 15:41:14.090033"], ["updated_at", "2019-11-21 15:41:14.090033"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.093136"], ["updated_at", "2019-11-21 15:41:14.093136"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 8], ["room_id", 8], ["created_at", "2019-11-21 15:41:14.097216"], ["updated_at", "2019-11-21 15:41:14.097216"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/8” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.099387"], ["last_sign_in_at", "2019-11-21 15:41:14.099387"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.099981"], ["id", 8]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"8"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 8]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m2M/EJYvwEt7Zb2rY0dV7ey2cmgkSaQosZUOc/qS.2k9FboHICF1y"], ["created_at", "2019-11-21 15:41:14.114725"], ["updated_at", "2019-11-21 15:41:14.114725"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.117191"], ["last_sign_in_at", "2019-11-21 15:41:14.117191"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.117806"], ["id", 9]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (13.1ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 127ms (Views: 73.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7KOfaKRkEF2P8Gtzsjpel.rgPRl8Rm6nxbZWqBlOVV/zvTyjEQ9P2"], ["created_at", "2019-11-21 15:41:14.257058"], ["updated_at", "2019-11-21 15:41:14.257058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.259597"], ["last_sign_in_at", "2019-11-21 15:41:14.259597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.260406"], ["id", 10]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jPLmwDDmMdthI2Cssin.aeaPgmwYxBY8qNlD02VroztIAp1iS.aE2"], ["created_at", "2019-11-21 15:41:14.270863"], ["updated_at", "2019-11-21 15:41:14.270863"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.273280"], ["last_sign_in_at", "2019-11-21 15:41:14.273280"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.273780"], ["id", 11]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IneFAaVveI7hPBC/YA8dduz2RRZ43kr2lWYg9cADkBKTghsa5lutm"], ["created_at", "2019-11-21 15:41:14.303744"], ["updated_at", "2019-11-21 15:41:14.303744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.306015"], ["last_sign_in_at", "2019-11-21 15:41:14.306015"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.306541"], ["id", 12]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tq0gUJeJavfRu4MBjNDSxezCWTXo8zjhkiozkGTdNrerQpDEKev4."], ["created_at", "2019-11-21 15:41:14.328094"], ["updated_at", "2019-11-21 15:41:14.328094"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.330337"], ["updated_at", "2019-11-21 15:41:14.330337"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.332454"], ["last_sign_in_at", "2019-11-21 15:41:14.332454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.332913"], ["id", 13]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rXcmDZbjU6l2m/0e3e6Qce.6ID7zPGrOOuICoqVmpXz3aD4zx3ZzW"], ["created_at", "2019-11-21 15:41:14.363337"], ["updated_at", "2019-11-21 15:41:14.363337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.365536"], ["updated_at", "2019-11-21 15:41:14.365536"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/10” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.367814"], ["last_sign_in_at", "2019-11-21 15:41:14.367814"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.368388"], ["id", 14]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"10"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 10], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.378376"], ["updated_at", "2019-11-21 15:41:14.378376"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/11” for 127.0.0.1 at 2019-11-21 12:41:14 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"11"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7aAI2gvWYF0OCMHv9nokuuPbDnwSHrb0oOkxU9VfFXKjZw7RlSJT6"], ["created_at", "2019-11-21 15:41:14.394365"], ["updated_at", "2019-11-21 15:41:14.394365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.396700"], ["updated_at", "2019-11-21 15:41:14.396700"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/12/edit” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.398884"], ["last_sign_in_at", "2019-11-21 15:41:14.398884"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.399482"], ["id", 15]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"12"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 12], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 22ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$S3WUTBT8vFObZpgwipA9iOtU7Aa3GlXKBeTjXnmTUdP5phxjvUcnO"], ["created_at", "2019-11-21 15:41:14.430784"], ["updated_at", "2019-11-21 15:41:14.430784"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.433016"], ["updated_at", "2019-11-21 15:41:14.433016"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/13/edit” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.435250"], ["last_sign_in_at", "2019-11-21 15:41:14.435250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.435781"], ["id", 16]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"13"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 13], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.447591"], ["updated_at", "2019-11-21 15:41:14.447591"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/14” for 127.0.0.1 at 2019-11-21 12:41:14 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"14"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xV187Va16LSN8fjxz4JTweyG5GzjOLFJozD5OSTElFWvsUkxhqThi"], ["created_at", "2019-11-21 15:41:14.458812"], ["updated_at", "2019-11-21 15:41:14.458812"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.461839"], ["last_sign_in_at", "2019-11-21 15:41:14.461839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.462344"], ["id", 17]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.465621"], ["updated_at", "2019-11-21 15:41:14.465621"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.w71mJsRXoN66rtkhHR/9uFS4E.FehxHoRt/b9PcLAcrQcVUD1eLC"], ["created_at", "2019-11-21 15:41:14.473434"], ["updated_at", "2019-11-21 15:41:14.473434"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.476402"], ["last_sign_in_at", "2019-11-21 15:41:14.476402"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.477011"], ["id", 18]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.480220"], ["updated_at", "2019-11-21 15:41:14.480220"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8UvBzx1oUwcBNuZm1yJc6OWIkuFv0Jpgq12AwzgWsXUYLc.0n9GPu"], ["created_at", "2019-11-21 15:41:14.487914"], ["updated_at", "2019-11-21 15:41:14.487914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.490585"], ["last_sign_in_at", "2019-11-21 15:41:14.490585"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.491192"], ["id", 19]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (60.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 62ms (ActiveRecord: 60.5ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/NOjI1.vMgiY2Tec6SRjjuzq39oCVwJkcl5HuWlkyFwdVs5fT.YnG"], ["created_at", "2019-11-21 15:41:14.566644"], ["updated_at", "2019-11-21 15:41:14.566644"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.569253"], ["last_sign_in_at", "2019-11-21 15:41:14.569253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.569935"], ["id", 20]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P/qrGf.TyifUscMt2KIH0OAI8auxrGIojyA1Lh1NNXNcAxqqC5.dy"], ["created_at", "2019-11-21 15:41:14.581756"], ["updated_at", "2019-11-21 15:41:14.581756"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.584303"], ["last_sign_in_at", "2019-11-21 15:41:14.584303"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.584745"], ["id", 21]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OelyAn9Xm652tIhNkMngkuBNonR5E4UayFK3d8k6PgDJE59OsP7T2"], ["created_at", "2019-11-21 15:41:14.596093"], ["updated_at", "2019-11-21 15:41:14.596093"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.598398"], ["updated_at", "2019-11-21 15:41:14.598398"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/17” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.600864"], ["last_sign_in_at", "2019-11-21 15:41:14.600864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.601347"], ["id", 22]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"17"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 17], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 15:41:14.606205"], ["id", 17]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/17 Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VGKrLwwLR29E6ANjhsjz8.FH9yOeczbbqEmMEoE8Z.uB9UGw6cZy2"], ["created_at", "2019-11-21 15:41:14.616517"], ["updated_at", "2019-11-21 15:41:14.616517"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.619294"], ["updated_at", "2019-11-21 15:41:14.619294"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/18” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.622353"], ["last_sign_in_at", "2019-11-21 15:41:14.622353"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.622997"], ["id", 23]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"18"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 18], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 15:41:14.628439"], ["id", 18]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/18 Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7yco.eoP.widVJMlhVfFMuETJdTFv5WaLLSi2k.ah6mwUP0Y8ty0y"], ["created_at", "2019-11-21 15:41:14.639040"], ["updated_at", "2019-11-21 15:41:14.639040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.642321"], ["updated_at", "2019-11-21 15:41:14.642321"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/19” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.645690"], ["last_sign_in_at", "2019-11-21 15:41:14.645690"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.646387"], ["id", 24]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"19"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 19], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SRBELFNDs.CskL54uo3tReJ4Xzy9Leargx7P8qQBdXWk6jm8g6axu"], ["created_at", "2019-11-21 15:41:14.662177"], ["updated_at", "2019-11-21 15:41:14.662177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.664387"], ["updated_at", "2019-11-21 15:41:14.664387"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/20” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.666692"], ["last_sign_in_at", "2019-11-21 15:41:14.666692"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.667262"], ["id", 25]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"20"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 20], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UZUBJVHjbegkq5kK0tC8Xejwn.3yrdkPTYLr4ZluzfVYJk4uQrqrW"], ["created_at", "2019-11-21 15:41:14.681759"], ["updated_at", "2019-11-21 15:41:14.681759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.684409"], ["last_sign_in_at", "2019-11-21 15:41:14.684409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.684880"], ["id", 26]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d0B2W/gkL5ORJVK7Wx5Nr.Q0lZcJY6usz2qhwyqMqL0lRpnFvAT9i"], ["created_at", "2019-11-21 15:41:14.695745"], ["updated_at", "2019-11-21 15:41:14.695745"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.697941"], ["updated_at", "2019-11-21 15:41:14.697941"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/21” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.699883"], ["last_sign_in_at", "2019-11-21 15:41:14.699883"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.700418"], ["id", 27]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"21"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 21], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 21]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$36fKXwivMR7nPynSMLKIcujH0UUO1RjchHrqDExPCsbFiu9ia3d1y"], ["created_at", "2019-11-21 15:41:14.712186"], ["updated_at", "2019-11-21 15:41:14.712186"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.714503"], ["updated_at", "2019-11-21 15:41:14.714503"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/22” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.716526"], ["last_sign_in_at", "2019-11-21 15:41:14.716526"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.717076"], ["id", 28]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"22"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 22], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 22]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$phnfSAB3bUIby7TqWWA0S.ZWTR0vVwvdQaMUIbF2xozoX0I5jNm5m"], ["created_at", "2019-11-21 15:41:14.729394"], ["updated_at", "2019-11-21 15:41:14.729394"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.731591"], ["updated_at", "2019-11-21 15:41:14.731591"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/23” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.733402"], ["last_sign_in_at", "2019-11-21 15:41:14.733402"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.733871"], ["id", 29]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"23"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qFWr/jzpi00IThXnrHWcOOGah6ursVyWLD8F7EEeLcY58e1w/6rsu"], ["created_at", "2019-11-21 15:41:14.743328"], ["updated_at", "2019-11-21 15:41:14.743328"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 15:41:14.745518"], ["updated_at", "2019-11-21 15:41:14.745518"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/24” for 127.0.0.1 at 2019-11-21 12:41:14 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 15:41:14.747359"], ["last_sign_in_at", "2019-11-21 15:41:14.747359"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 15:41:14.748016"], ["id", 30]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"24"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yiJIRpE.leYZw3uvy6.zROb4ilOmqo3kPEAa/nohk.45S4XRQncwK"], ["created_at", "2019-11-21 16:29:14.436582"], ["updated_at", "2019-11-21 16:29:14.436582"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:14.439389"], ["updated_at", "2019-11-21 16:29:14.439389"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:29:14 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:14.465350"], ["last_sign_in_at", "2019-11-21 16:29:14.465350"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:14.466357"], ["id", 31]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"25"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 25], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 31], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 31], ["room_id", 25], ["created_at", "2019-11-21 16:29:14.512914"], ["updated_at", "2019-11-21 16:29:14.512914"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 27ms (ActiveRecord: 2.3ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 25], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yCT2fOV/8eqGEt98FAhk6.1/Og8ojp93NhCKEHnP96Jc2H8mkQKLS"], ["created_at", "2019-11-21 16:29:14.528808"], ["updated_at", "2019-11-21 16:29:14.528808"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:14.531219"], ["updated_at", "2019-11-21 16:29:14.531219"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:29:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:14.534779"], ["last_sign_in_at", "2019-11-21 16:29:14.534779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:14.535365"], ["id", 32]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"26"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 26], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 32], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 32], ["room_id", 26], ["created_at", "2019-11-21 16:29:14.540836"], ["updated_at", "2019-11-21 16:29:14.540836"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rbNnbx8fZ967riiy/8JdZ.BDr42FYN.ZmKciJyPhJksgEIsqfiZSO"], ["created_at", "2019-11-21 16:29:14.550465"], ["updated_at", "2019-11-21 16:29:14.550465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:14.552875"], ["updated_at", "2019-11-21 16:29:14.552875"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:29:14 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:14.555876"], ["last_sign_in_at", "2019-11-21 16:29:14.555876"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:14.556614"], ["id", 33]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"27"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 27], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sSb9FlVKjKdPQqmWSykuzuWTIPQrFq0RF.WhjcN.TIOwRrSTHrkTO"], ["created_at", "2019-11-21 16:29:14.567424"], ["updated_at", "2019-11-21 16:29:14.567424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:14.569600"], ["updated_at", "2019-11-21 16:29:14.569600"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:29:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:14.571949"], ["last_sign_in_at", "2019-11-21 16:29:14.571949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:14.572584"], ["id", 34]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"28"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JadAUe5n1sXxbW63IjhDrelBA/k15bs5oc/V/NAbAaIadUHLeDaQa"], ["created_at", "2019-11-21 16:29:14.583706"], ["updated_at", "2019-11-21 16:29:14.583706"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:14.585937"], ["updated_at", "2019-11-21 16:29:14.585937"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 29], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 35], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 35], ["room_id", 29], ["created_at", "2019-11-21 16:29:14.589668"], ["updated_at", "2019-11-21 16:29:14.589668"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/29” for 127.0.0.1 at 2019-11-21 13:29:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:14.592071"], ["last_sign_in_at", "2019-11-21 16:29:14.592071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:14.592557"], ["id", 35]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"29"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 29], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '29')
Rendered appointments/show.html.erb within layouts/application (23.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 410ms (Views: 390.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$L5pmW9fKLOgewiI.7c2xsufW7Enog1zbizBYPb9sKEf0flrJCiCX2"], ["created_at", "2019-11-21 16:29:15.013000"], ["updated_at", "2019-11-21 16:29:15.013000"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.015829"], ["updated_at", "2019-11-21 16:29:15.015829"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 30], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 36], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 36], ["room_id", 30], ["created_at", "2019-11-21 16:29:15.021737"], ["updated_at", "2019-11-21 16:29:15.021737"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 30], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 36], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 36], ["room_id", 30], ["created_at", "2019-11-21 16:29:15.025768"], ["updated_at", "2019-11-21 16:29:15.025768"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.028041"], ["last_sign_in_at", "2019-11-21 16:29:15.028041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.028556"], ["id", 36]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 36]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 64ms (Views: 4.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$POiOrqMweyaQ3oCN4rC6gO5456Lx4MdqM5F8xU/2bnPfE5uSVD7qO"], ["created_at", "2019-11-21 16:29:15.102831"], ["updated_at", "2019-11-21 16:29:15.102831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.105159"], ["updated_at", "2019-11-21 16:29:15.105159"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 31], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 37], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 37], ["room_id", 31], ["created_at", "2019-11-21 16:29:15.109120"], ["updated_at", "2019-11-21 16:29:15.109120"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 31], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 37], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 37], ["room_id", 31], ["created_at", "2019-11-21 16:29:15.113030"], ["updated_at", "2019-11-21 16:29:15.113030"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.115811"], ["last_sign_in_at", "2019-11-21 16:29:15.115811"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.116535"], ["id", 37]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 37]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2oQ50qWKbfku0ZOIauoRzOkAH.0m3vnbXitAicFSWBgd8C7KZJMPa"], ["created_at", "2019-11-21 16:29:15.132665"], ["updated_at", "2019-11-21 16:29:15.132665"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.135485"], ["updated_at", "2019-11-21 16:29:15.135485"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 32], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 38], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 38], ["room_id", 32], ["created_at", "2019-11-21 16:29:15.139218"], ["updated_at", "2019-11-21 16:29:15.139218"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/16” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.141365"], ["last_sign_in_at", "2019-11-21 16:29:15.141365"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.141856"], ["id", 38]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"16"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 16], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 16]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YGH9gVnBaVybfMIEpqLVMeBQzvQ5tCIvWnQwPmdWM0XpNOEGZvyhO"], ["created_at", "2019-11-21 16:29:15.156888"], ["updated_at", "2019-11-21 16:29:15.156888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.159326"], ["last_sign_in_at", "2019-11-21 16:29:15.159326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.159870"], ["id", 39]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 47ms (Views: 28.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iGSPgOL6U/Qe3GQovRFM9OYGX1mGwGIePamH9JheEejNgXQsjcOui"], ["created_at", "2019-11-21 16:29:15.217236"], ["updated_at", "2019-11-21 16:29:15.217236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.219687"], ["updated_at", "2019-11-21 16:29:15.219687"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 33], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 40], ["room_id", 33], ["created_at", "2019-11-21 16:29:15.223577"], ["updated_at", "2019-11-21 16:29:15.223577"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 33], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 40], ["room_id", 33], ["created_at", "2019-11-21 16:29:15.227447"], ["updated_at", "2019-11-21 16:29:15.227447"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.230699"], ["last_sign_in_at", "2019-11-21 16:29:15.230699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.231721"], ["id", 40]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 33], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 40], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7IQz92FQc2mV2JOEvijisObltk0mzmEodgkOXjAJoLWzFml6gAw0m"], ["created_at", "2019-11-21 16:29:15.249386"], ["updated_at", "2019-11-21 16:29:15.249386"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.252226"], ["last_sign_in_at", "2019-11-21 16:29:15.252226"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.252777"], ["id", 41]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (24.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 94ms (Views: 77.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iol.Aosf7I/7YY8uFuU6m.eS9i8kNM5SrmX9QdEIK0WIXrh5NDXBi"], ["created_at", "2019-11-21 16:29:15.372077"], ["updated_at", "2019-11-21 16:29:15.372077"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.374542"], ["last_sign_in_at", "2019-11-21 16:29:15.374542"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.375033"], ["id", 42]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sdrwA/9J9ykdAakVfvMmHuksFLJKbpYMcN149Gb/W0A8o6N8Hb55G"], ["created_at", "2019-11-21 16:29:15.387076"], ["updated_at", "2019-11-21 16:29:15.387076"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.389824"], ["last_sign_in_at", "2019-11-21 16:29:15.389824"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.390374"], ["id", 43]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 28ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L4pHC2IHq/zAqUlMUp.U5.jfMeQJjsdtIMNkQmZJ5XH6rcLIefiCG"], ["created_at", "2019-11-21 16:29:15.426410"], ["updated_at", "2019-11-21 16:29:15.426410"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.428963"], ["last_sign_in_at", "2019-11-21 16:29:15.428963"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.429488"], ["id", 44]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m5vqB1LZFo40MBppe//FcO8you/Epk/PCcdprbCtVOrRwa3VgU/sa"], ["created_at", "2019-11-21 16:29:15.451369"], ["updated_at", "2019-11-21 16:29:15.451369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.453487"], ["updated_at", "2019-11-21 16:29:15.453487"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/34” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.455591"], ["last_sign_in_at", "2019-11-21 16:29:15.455591"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.456053"], ["id", 45]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"34"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 34], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 21ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RmizhZjI6FdQw6rdEw36HOH0mn7rDcXCUvHiKqr9rxsL8Z5OkUS3O"], ["created_at", "2019-11-21 16:29:15.485539"], ["updated_at", "2019-11-21 16:29:15.485539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.487867"], ["updated_at", "2019-11-21 16:29:15.487867"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/35” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.490448"], ["last_sign_in_at", "2019-11-21 16:29:15.490448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.491027"], ["id", 46]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"35"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 35], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.501128"], ["updated_at", "2019-11-21 16:29:15.501128"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/36” for 127.0.0.1 at 2019-11-21 13:29:15 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"36"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rR4Rft3W.bPAx8cqLXidA.lSY//Qu.cIziCK0aQwvsuFKerip9tg6"], ["created_at", "2019-11-21 16:29:15.511926"], ["updated_at", "2019-11-21 16:29:15.511926"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.514277"], ["updated_at", "2019-11-21 16:29:15.514277"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/37/edit” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.517360"], ["last_sign_in_at", "2019-11-21 16:29:15.517360"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.517921"], ["id", 47]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"37"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 37], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.7ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tT/NCB1Ub9JhOMrDlp/hfe5E7jEQ8DMlabfhwv9a7yatRk244L4IW"], ["created_at", "2019-11-21 16:29:15.548194"], ["updated_at", "2019-11-21 16:29:15.548194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.551297"], ["updated_at", "2019-11-21 16:29:15.551297"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/38/edit” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.554068"], ["last_sign_in_at", "2019-11-21 16:29:15.554068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.554605"], ["id", 48]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"38"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 38], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.566161"], ["updated_at", "2019-11-21 16:29:15.566161"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/39” for 127.0.0.1 at 2019-11-21 13:29:15 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"39"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9XNbQG8AQoiIjc9Vp6a/te.YIoxI.U3wNY6NEgp5GBSyYBY6ckXB2"], ["created_at", "2019-11-21 16:29:15.577910"], ["updated_at", "2019-11-21 16:29:15.577910"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.580865"], ["last_sign_in_at", "2019-11-21 16:29:15.580865"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.581741"], ["id", 49]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.585805"], ["updated_at", "2019-11-21 16:29:15.585805"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NfzzQ7KW1RVdAioxL.Gid.9f3K.E2SXWeA/5g7c1eqv0ea7bVzSAS"], ["created_at", "2019-11-21 16:29:15.594624"], ["updated_at", "2019-11-21 16:29:15.594624"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.597465"], ["last_sign_in_at", "2019-11-21 16:29:15.597465"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.598126"], ["id", 50]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.603531"], ["updated_at", "2019-11-21 16:29:15.603531"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NNFKwteYNZjtZS4Iwy4lReJJfsftHR8eHrnErWOypQaiKTrotaBva"], ["created_at", "2019-11-21 16:29:15.612109"], ["updated_at", "2019-11-21 16:29:15.612109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.615066"], ["last_sign_in_at", "2019-11-21 16:29:15.615066"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.615814"], ["id", 51]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DM9dMF6jvC1Jluc.cqDFj.7P7ZGDeuYxaDdxnM6pEHgBZJhhDibNq"], ["created_at", "2019-11-21 16:29:15.627863"], ["updated_at", "2019-11-21 16:29:15.627863"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.630771"], ["last_sign_in_at", "2019-11-21 16:29:15.630771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.631477"], ["id", 52]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tqKjx4hc9LfzFTOB7s1awuMRHV0js4dbczlsfzszNeUopl9J6mRRK"], ["created_at", "2019-11-21 16:29:15.643885"], ["updated_at", "2019-11-21 16:29:15.643885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.647345"], ["last_sign_in_at", "2019-11-21 16:29:15.647345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.647897"], ["id", 53]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XwwlntZb2E3LoUUf.NT/CuVOkJS3eb.yvGIrZ7MPGmAmqG.0N.uf2"], ["created_at", "2019-11-21 16:29:15.661244"], ["updated_at", "2019-11-21 16:29:15.661244"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.664323"], ["updated_at", "2019-11-21 16:29:15.664323"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/42” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.668454"], ["last_sign_in_at", "2019-11-21 16:29:15.668454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.669322"], ["id", 54]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"42"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 42], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 16:29:15.674055"], ["id", 42]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/42 Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2tseB4sWRUWUjgojUG7MR.agD7GOiiwUegrhU30HpF4nBKycTg5Tu"], ["created_at", "2019-11-21 16:29:15.684010"], ["updated_at", "2019-11-21 16:29:15.684010"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.686873"], ["updated_at", "2019-11-21 16:29:15.686873"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/43” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.690303"], ["last_sign_in_at", "2019-11-21 16:29:15.690303"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.691063"], ["id", 55]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"43"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 43], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 16:29:15.695552"], ["id", 43]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/43 Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BhI8DMi6lv72/6eYgf93o.Bp9j1aEKRWR6jyaxkmVK/XxfGBEbkXW"], ["created_at", "2019-11-21 16:29:15.708319"], ["updated_at", "2019-11-21 16:29:15.708319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.711512"], ["updated_at", "2019-11-21 16:29:15.711512"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/44” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.714496"], ["last_sign_in_at", "2019-11-21 16:29:15.714496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.715363"], ["id", 56]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"44"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 44], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q0kpp0DXsVkULEMB3GeiWOUeMdykGQ1E2HR2OoiM7ElRgMR.XWmFK"], ["created_at", "2019-11-21 16:29:15.733857"], ["updated_at", "2019-11-21 16:29:15.733857"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.736338"], ["updated_at", "2019-11-21 16:29:15.736338"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/45” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.739264"], ["last_sign_in_at", "2019-11-21 16:29:15.739264"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.739807"], ["id", 57]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"45"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 45], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EAXNIy3CLSuKdPdW3hulV.fxmsxqCNQ1Siflzp3pWGNTSfHW/P2Ku"], ["created_at", "2019-11-21 16:29:15.757306"], ["updated_at", "2019-11-21 16:29:15.757306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.760547"], ["last_sign_in_at", "2019-11-21 16:29:15.760547"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.761183"], ["id", 58]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aC4aQcaDO4e07Hdk8hwtaeuUlWWDPnKdBkaIM4GRPMksQ5tIspVja"], ["created_at", "2019-11-21 16:29:15.772266"], ["updated_at", "2019-11-21 16:29:15.772266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.774644"], ["updated_at", "2019-11-21 16:29:15.774644"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/46” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.776599"], ["last_sign_in_at", "2019-11-21 16:29:15.776599"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.777067"], ["id", 59]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"46"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 46], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 46]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.2ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v2medRCbN1Pb39dVVtix4uOMFIiXZt7qr18DcjwN5XH..rEDycCgq"], ["created_at", "2019-11-21 16:29:15.789910"], ["updated_at", "2019-11-21 16:29:15.789910"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.792222"], ["updated_at", "2019-11-21 16:29:15.792222"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/47” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.794256"], ["last_sign_in_at", "2019-11-21 16:29:15.794256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.794987"], ["id", 60]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"47"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 47], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 47]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zLS.c.oQnjgbC71BCYLk5eewCvvs0HeFXnZyrmByYn4cpvBiRnbfC"], ["created_at", "2019-11-21 16:29:15.809029"], ["updated_at", "2019-11-21 16:29:15.809029"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.811659"], ["updated_at", "2019-11-21 16:29:15.811659"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/48” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.814353"], ["last_sign_in_at", "2019-11-21 16:29:15.814353"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.815067"], ["id", 61]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"48"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.dO8claBtYQxXf2qiM28VuQhffwd/lDIwkqoyO/oPMAOnzfpPSQzK"], ["created_at", "2019-11-21 16:29:15.826138"], ["updated_at", "2019-11-21 16:29:15.826138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:29:15.828609"], ["updated_at", "2019-11-21 16:29:15.828609"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/49” for 127.0.0.1 at 2019-11-21 13:29:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:29:15.831233"], ["last_sign_in_at", "2019-11-21 16:29:15.831233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:29:15.832175"], ["id", 62]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"49"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oHVhGvHH06w8r3FczWhWieg2afCEcUMLy2WhHZCTyQ38Tl.BH5dD6"], ["created_at", "2019-11-21 16:59:31.131247"], ["updated_at", "2019-11-21 16:59:31.131247"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:31.134431"], ["updated_at", "2019-11-21 16:59:31.134431"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:59:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:31.193498"], ["last_sign_in_at", "2019-11-21 16:59:31.193498"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:31.194255"], ["id", 63]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"50"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 50], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 63], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 63], ["room_id", 50], ["created_at", "2019-11-21 16:59:31.310394"], ["updated_at", "2019-11-21 16:59:31.310394"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 84ms (ActiveRecord: 2.1ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 50], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (8.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Zk9qIpaHRyhpb5QdsKmQBuvNqaOzj/t1fwcXjSmOgVubBMzCKtjJG"], ["created_at", "2019-11-21 16:59:31.345246"], ["updated_at", "2019-11-21 16:59:31.345246"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:31.347566"], ["updated_at", "2019-11-21 16:59:31.347566"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:59:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:31.350099"], ["last_sign_in_at", "2019-11-21 16:59:31.350099"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:31.350620"], ["id", 64]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"51"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 51], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 64], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 64], ["room_id", 51], ["created_at", "2019-11-21 16:59:31.355717"], ["updated_at", "2019-11-21 16:59:31.355717"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XgjxO4w7MQRJ7xCkbJu9ee74wKIO6ZZCYVcEQUqw7mLP.kkVlHJ5i"], ["created_at", "2019-11-21 16:59:31.364639"], ["updated_at", "2019-11-21 16:59:31.364639"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:31.367074"], ["updated_at", "2019-11-21 16:59:31.367074"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:59:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:31.369645"], ["last_sign_in_at", "2019-11-21 16:59:31.369645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:31.370185"], ["id", 65]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"52"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 52], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hbohL2ROfmJ0WG6iWFdPSOwWwOgDxJmr0kua4Ya9kS9G67TC/mWv."], ["created_at", "2019-11-21 16:59:31.380029"], ["updated_at", "2019-11-21 16:59:31.380029"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:31.382338"], ["updated_at", "2019-11-21 16:59:31.382338"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 13:59:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:31.384638"], ["last_sign_in_at", "2019-11-21 16:59:31.384638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:31.385190"], ["id", 66]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"53"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Vw.AQe19zNmMmYDXDuU0u.ZYDZGSFtRyT3J.1kLlhxF8df7fIBx32"], ["created_at", "2019-11-21 16:59:31.395575"], ["updated_at", "2019-11-21 16:59:31.395575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:31.398009"], ["updated_at", "2019-11-21 16:59:31.398009"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 54], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 67], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 67], ["room_id", 54], ["created_at", "2019-11-21 16:59:31.402139"], ["updated_at", "2019-11-21 16:59:31.402139"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/54” for 127.0.0.1 at 2019-11-21 13:59:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:31.404586"], ["last_sign_in_at", "2019-11-21 16:59:31.404586"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:31.405231"], ["id", 67]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"54"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 54], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '54')
Rendered appointments/show.html.erb within layouts/application (142.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 700ms (Views: 672.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WGQCVGX4x9uitDx66bRnrOAhQU5bimROsY30wbU4y5zSYlQjUvVE6"], ["created_at", "2019-11-21 16:59:32.115416"], ["updated_at", "2019-11-21 16:59:32.115416"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.117626"], ["updated_at", "2019-11-21 16:59:32.117626"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 55], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 68], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 68], ["room_id", 55], ["created_at", "2019-11-21 16:59:32.121651"], ["updated_at", "2019-11-21 16:59:32.121651"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 55], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 68], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 68], ["room_id", 55], ["created_at", "2019-11-21 16:59:32.125561"], ["updated_at", "2019-11-21 16:59:32.125561"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.128219"], ["last_sign_in_at", "2019-11-21 16:59:32.128219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.128791"], ["id", 68]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 68]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$e78oDEX52sXcWCF1ixlSVeWCuyreuYUhWBEvJYPj915xcwm00yPs6"], ["created_at", "2019-11-21 16:59:32.172343"], ["updated_at", "2019-11-21 16:59:32.172343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.174452"], ["updated_at", "2019-11-21 16:59:32.174452"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 56], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 69], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 69], ["room_id", 56], ["created_at", "2019-11-21 16:59:32.178694"], ["updated_at", "2019-11-21 16:59:32.178694"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 56], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 69], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 69], ["room_id", 56], ["created_at", "2019-11-21 16:59:32.182344"], ["updated_at", "2019-11-21 16:59:32.182344"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.184368"], ["last_sign_in_at", "2019-11-21 16:59:32.184368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.184912"], ["id", 69]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 69]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ruTyNIyvOVmA0gyCfBJuyuSE7nFpPF1UDax9ivC8f0LwduAGsQfzG"], ["created_at", "2019-11-21 16:59:32.197375"], ["updated_at", "2019-11-21 16:59:32.197375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.199399"], ["updated_at", "2019-11-21 16:59:32.199399"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 57], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 70], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 70], ["room_id", 57], ["created_at", "2019-11-21 16:59:32.202970"], ["updated_at", "2019-11-21 16:59:32.202970"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/26” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.204975"], ["last_sign_in_at", "2019-11-21 16:59:32.204975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.205506"], ["id", 70]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"26"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 26], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 26]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GsGvXTbTlletZKBBo3NDQOoFxdUNbVbocY0uz1CorMfm0wNYJxIr2"], ["created_at", "2019-11-21 16:59:32.218709"], ["updated_at", "2019-11-21 16:59:32.218709"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.220915"], ["last_sign_in_at", "2019-11-21 16:59:32.220915"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.221407"], ["id", 71]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 52ms (Views: 19.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dwQn4hgQIgnRYe94861UwOGt7fmtXEm3n4qPHJP.oWhhR3hin0P5K"], ["created_at", "2019-11-21 16:59:32.283693"], ["updated_at", "2019-11-21 16:59:32.283693"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.286286"], ["updated_at", "2019-11-21 16:59:32.286286"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 58], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 72], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 72], ["room_id", 58], ["created_at", "2019-11-21 16:59:32.289869"], ["updated_at", "2019-11-21 16:59:32.289869"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 58], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 72], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 72], ["room_id", 58], ["created_at", "2019-11-21 16:59:32.294657"], ["updated_at", "2019-11-21 16:59:32.294657"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.296905"], ["last_sign_in_at", "2019-11-21 16:59:32.296905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.297387"], ["id", 72]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 58], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 72], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 72], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B//aaXBszspW9wGThNyEsuufRoXzHuHWIJzvnZqAiPyaM9vvzoC/6"], ["created_at", "2019-11-21 16:59:32.311645"], ["updated_at", "2019-11-21 16:59:32.311645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.313874"], ["updated_at", "2019-11-21 16:59:32.313874"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 59], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 73], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 73], ["room_id", 59], ["created_at", "2019-11-21 16:59:32.317743"], ["updated_at", "2019-11-21 16:59:32.317743"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 59], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 73], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 73], ["room_id", 59], ["created_at", "2019-11-21 16:59:32.334376"], ["updated_at", "2019-11-21 16:59:32.334376"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.336742"], ["last_sign_in_at", "2019-11-21 16:59:32.336742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.337255"], ["id", 73]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8cji68HIq29.OigfXtLnVea9STEPkdt1OIW3zNFk/Fp.rJPbCJbR2"], ["created_at", "2019-11-21 16:59:32.350965"], ["updated_at", "2019-11-21 16:59:32.350965"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.353458"], ["last_sign_in_at", "2019-11-21 16:59:32.353458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.353988"], ["id", 74]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (27.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 87ms (Views: 66.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xfR57WvAaQVu122JurV9WuKShV.xv0Cakntj8fKCoNMtxb/EQZ4iC"], ["created_at", "2019-11-21 16:59:32.461751"], ["updated_at", "2019-11-21 16:59:32.461751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.464293"], ["last_sign_in_at", "2019-11-21 16:59:32.464293"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.464879"], ["id", 75]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pSAp98yzl6RzzjVnrZgGWunl9b/kEBxP255HO9/dtWQW6FeCm8Y8e"], ["created_at", "2019-11-21 16:59:32.475017"], ["updated_at", "2019-11-21 16:59:32.475017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.477922"], ["last_sign_in_at", "2019-11-21 16:59:32.477922"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.478552"], ["id", 76]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 29ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FhGhsbF6AMs9rfKIn2ukK.jmYsiqQkmRH.bZU6GaC7HP1NnIsZyjO"], ["created_at", "2019-11-21 16:59:32.516189"], ["updated_at", "2019-11-21 16:59:32.516189"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.518650"], ["last_sign_in_at", "2019-11-21 16:59:32.518650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.519193"], ["id", 77]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pJgMpvozSrC/.Ax5LByiUey8hMIpTsXl6fNVT5PrktQ8QotuZa8mW"], ["created_at", "2019-11-21 16:59:32.539565"], ["updated_at", "2019-11-21 16:59:32.539565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.541727"], ["updated_at", "2019-11-21 16:59:32.541727"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/60” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.544144"], ["last_sign_in_at", "2019-11-21 16:59:32.544144"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.544927"], ["id", 78]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"60"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 60], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aM0a8BKjrMNM5jMTQyQVDuc5alsWDzd5n10lb/p6986zew2nLgLUy"], ["created_at", "2019-11-21 16:59:32.573143"], ["updated_at", "2019-11-21 16:59:32.573143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.575563"], ["updated_at", "2019-11-21 16:59:32.575563"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/61” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.578097"], ["last_sign_in_at", "2019-11-21 16:59:32.578097"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.578682"], ["id", 79]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"61"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 61], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.589160"], ["updated_at", "2019-11-21 16:59:32.589160"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/62” for 127.0.0.1 at 2019-11-21 13:59:32 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"62"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u6HAdwkM7p/R93ASHnoxRuMMUjrxd8U9NimN3CxTH/H88tvDl0c/y"], ["created_at", "2019-11-21 16:59:32.600580"], ["updated_at", "2019-11-21 16:59:32.600580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.602791"], ["updated_at", "2019-11-21 16:59:32.602791"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/63/edit” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.605166"], ["last_sign_in_at", "2019-11-21 16:59:32.605166"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.605745"], ["id", 80]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"63"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 63], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 22ms (Views: 4.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WRgUKvCF2dwz/MaNQsCDCuVlwgpKEgS4AmhY7OWIFwEO0nbs8TXr."], ["created_at", "2019-11-21 16:59:32.636375"], ["updated_at", "2019-11-21 16:59:32.636375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.638953"], ["updated_at", "2019-11-21 16:59:32.638953"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/64/edit” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.641394"], ["last_sign_in_at", "2019-11-21 16:59:32.641394"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.642002"], ["id", 81]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"64"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 64], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.654224"], ["updated_at", "2019-11-21 16:59:32.654224"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/65” for 127.0.0.1 at 2019-11-21 13:59:32 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"65"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4jaARUyJauRwD9zleG0Kxun1m7nb9BHwLfZsHvMW9yESZfHMyi6ii"], ["created_at", "2019-11-21 16:59:32.666102"], ["updated_at", "2019-11-21 16:59:32.666102"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.668761"], ["last_sign_in_at", "2019-11-21 16:59:32.668761"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.669614"], ["id", 82]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.673249"], ["updated_at", "2019-11-21 16:59:32.673249"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8ITa4cBXjlN0cQU/ZIv7iu2hSiEBF9zhAm84FfTDFmwHylyRIwP6e"], ["created_at", "2019-11-21 16:59:32.682377"], ["updated_at", "2019-11-21 16:59:32.682377"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.685358"], ["last_sign_in_at", "2019-11-21 16:59:32.685358"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.685954"], ["id", 83]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.690046"], ["updated_at", "2019-11-21 16:59:32.690046"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y.T.KjbdTde22nfrLNSSI.CpqieRjD2kT9hqsjIlTma17.1Iia22u"], ["created_at", "2019-11-21 16:59:32.699833"], ["updated_at", "2019-11-21 16:59:32.699833"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.703446"], ["last_sign_in_at", "2019-11-21 16:59:32.703446"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.703957"], ["id", 84]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aOPHe97rPnD.0bSZ6eOJoezR7LMH0htv2cMQ2EWB7g9bvqfRwPbTu"], ["created_at", "2019-11-21 16:59:32.717634"], ["updated_at", "2019-11-21 16:59:32.717634"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.720967"], ["last_sign_in_at", "2019-11-21 16:59:32.720967"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.721448"], ["id", 85]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Krwn/qBNS1cIgmeoz.WY5Or7IygZ6hesedBUOVdh4VmZN80RIjYYW"], ["created_at", "2019-11-21 16:59:32.735454"], ["updated_at", "2019-11-21 16:59:32.735454"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.738625"], ["last_sign_in_at", "2019-11-21 16:59:32.738625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.739415"], ["id", 86]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WwtA5lfsGJ35xSIlEGvS4O3a7Beq0Sdqnk1rCT9uKdkYI4L7o1uki"], ["created_at", "2019-11-21 16:59:32.754364"], ["updated_at", "2019-11-21 16:59:32.754364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.757025"], ["updated_at", "2019-11-21 16:59:32.757025"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/68” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.760164"], ["last_sign_in_at", "2019-11-21 16:59:32.760164"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.760853"], ["id", 87]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"68"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 68], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 16:59:32.765629"], ["id", 68]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/68 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OP7.ACz.nNFalREK6Zb4p.PA233exDWvMTEXzXL6H8DWKLXVArzce"], ["created_at", "2019-11-21 16:59:32.774277"], ["updated_at", "2019-11-21 16:59:32.774277"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.776721"], ["updated_at", "2019-11-21 16:59:32.776721"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/69” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.780039"], ["last_sign_in_at", "2019-11-21 16:59:32.780039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.780758"], ["id", 88]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"69"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 69], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 16:59:32.785363"], ["id", 69]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/69 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GL28AfZiVul5ZqfPvkiPsudFapBMaLi8E6NUx3S.5x5Wn0PaxRtAe"], ["created_at", "2019-11-21 16:59:32.795224"], ["updated_at", "2019-11-21 16:59:32.795224"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.797674"], ["updated_at", "2019-11-21 16:59:32.797674"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/70” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.800746"], ["last_sign_in_at", "2019-11-21 16:59:32.800746"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.801251"], ["id", 89]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"70"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 70], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xU8EORKW2njHxWNUK4U89ea0lKrnzac/jnHXesa85Na7W.O5asxny"], ["created_at", "2019-11-21 16:59:32.816713"], ["updated_at", "2019-11-21 16:59:32.816713"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.819056"], ["updated_at", "2019-11-21 16:59:32.819056"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/71” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.821560"], ["last_sign_in_at", "2019-11-21 16:59:32.821560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.822122"], ["id", 90]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"71"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 71], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2cqPvwlGXYQ5J8gphfyrC.bDDxae/TPsB3JQ/vGg92NVRk.sMLqvq"], ["created_at", "2019-11-21 16:59:32.838434"], ["updated_at", "2019-11-21 16:59:32.838434"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.841351"], ["last_sign_in_at", "2019-11-21 16:59:32.841351"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.842058"], ["id", 91]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uNSkw2FdHnpeHkp4pFcAt.a4J9hNUkJzQvM6ehQ6bwI.RGinEq14."], ["created_at", "2019-11-21 16:59:32.853339"], ["updated_at", "2019-11-21 16:59:32.853339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.856349"], ["updated_at", "2019-11-21 16:59:32.856349"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/72” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.858597"], ["last_sign_in_at", "2019-11-21 16:59:32.858597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.859130"], ["id", 92]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"72"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 72], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 72]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y7ge/kC6O4K6nimcfpkQVuD.QditNzpaE5eqoXfnhmTERp1GbxaFS"], ["created_at", "2019-11-21 16:59:32.871775"], ["updated_at", "2019-11-21 16:59:32.871775"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.874390"], ["updated_at", "2019-11-21 16:59:32.874390"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/73” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.876551"], ["last_sign_in_at", "2019-11-21 16:59:32.876551"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.877478"], ["id", 93]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"73"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 73], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 73]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7BklBu.PepA1E.TU8xz1AOpb1gtcHMHtg0RpS//m13K3PkYR3n2Ka"], ["created_at", "2019-11-21 16:59:32.890048"], ["updated_at", "2019-11-21 16:59:32.890048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.892444"], ["updated_at", "2019-11-21 16:59:32.892444"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/74” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.894710"], ["last_sign_in_at", "2019-11-21 16:59:32.894710"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.895696"], ["id", 94]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"74"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OqY.baUmwOz0ERF4IyxiTevWwXOvtAE59di6dAB4sVog7LbQdcNYi"], ["created_at", "2019-11-21 16:59:32.905996"], ["updated_at", "2019-11-21 16:59:32.905996"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 16:59:32.908830"], ["updated_at", "2019-11-21 16:59:32.908830"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/75” for 127.0.0.1 at 2019-11-21 13:59:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 16:59:32.911537"], ["last_sign_in_at", "2019-11-21 16:59:32.911537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 16:59:32.912314"], ["id", 95]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"75"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AthOXV1fQDkFWhHhNj9zeOux61dDC9it.TEOGZ8oQeNKH5CHhzEvm"], ["created_at", "2019-11-21 17:29:21.694320"], ["updated_at", "2019-11-21 17:29:21.694320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:21.697228"], ["updated_at", "2019-11-21 17:29:21.697228"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:29:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:21.721832"], ["last_sign_in_at", "2019-11-21 17:29:21.721832"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:21.722602"], ["id", 96]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"76"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 76], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 96], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 96], ["room_id", 76], ["created_at", "2019-11-21 17:29:21.766026"], ["updated_at", "2019-11-21 17:29:21.766026"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 2.0ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 76], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qfOi6O4kEcb3QJ26gBq5NubeGKcrX275p7rkzgGDnnxSBaDD7oDrK"], ["created_at", "2019-11-21 17:29:21.781250"], ["updated_at", "2019-11-21 17:29:21.781250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:21.783451"], ["updated_at", "2019-11-21 17:29:21.783451"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:29:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:21.785961"], ["last_sign_in_at", "2019-11-21 17:29:21.785961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:21.786500"], ["id", 97]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"77"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 77], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 97], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 97], ["room_id", 77], ["created_at", "2019-11-21 17:29:21.791949"], ["updated_at", "2019-11-21 17:29:21.791949"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NhWdkfKdMqbop7bCrvcpyu4jKPMHr2ltB6RT7tbFwqvX7fSdtEJs."], ["created_at", "2019-11-21 17:29:21.799932"], ["updated_at", "2019-11-21 17:29:21.799932"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:21.801921"], ["updated_at", "2019-11-21 17:29:21.801921"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:29:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:21.804174"], ["last_sign_in_at", "2019-11-21 17:29:21.804174"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:21.804657"], ["id", 98]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"78"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 78], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lUYwby.mW4nXOwBua.J6pOmhSMj8s9QtY5JM4Yv6aDdY6Pu2elYp2"], ["created_at", "2019-11-21 17:29:21.813459"], ["updated_at", "2019-11-21 17:29:21.813459"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:21.815509"], ["updated_at", "2019-11-21 17:29:21.815509"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:29:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:21.817727"], ["last_sign_in_at", "2019-11-21 17:29:21.817727"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:21.818200"], ["id", 99]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"79"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RH8SqgXWrCi7GFzvHTRWWe3j5MEmXa29cXWSR7KNzQ7VSppLgF5YG"], ["created_at", "2019-11-21 17:29:21.827579"], ["updated_at", "2019-11-21 17:29:21.827579"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:21.829802"], ["updated_at", "2019-11-21 17:29:21.829802"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 80], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 100], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 100], ["room_id", 80], ["created_at", "2019-11-21 17:29:21.837145"], ["updated_at", "2019-11-21 17:29:21.837145"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/80” for 127.0.0.1 at 2019-11-21 14:29:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:21.839714"], ["last_sign_in_at", "2019-11-21 17:29:21.839714"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:21.840372"], ["id", 100]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"80"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 80], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '80')
Rendered appointments/show.html.erb within layouts/application (21.4ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 380ms (Views: 362.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ITyvyh9fXDEn3LMicP.8Fuio58cafWDvPGzbtBx2sb865CzMaGhdW"], ["created_at", "2019-11-21 17:29:22.230249"], ["updated_at", "2019-11-21 17:29:22.230249"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.232226"], ["updated_at", "2019-11-21 17:29:22.232226"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 81], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 101], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 101], ["room_id", 81], ["created_at", "2019-11-21 17:29:22.235885"], ["updated_at", "2019-11-21 17:29:22.235885"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 81], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 101], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 101], ["room_id", 81], ["created_at", "2019-11-21 17:29:22.239656"], ["updated_at", "2019-11-21 17:29:22.239656"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.242014"], ["last_sign_in_at", "2019-11-21 17:29:22.242014"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.242478"], ["id", 101]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 101]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 36ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$buUAk0GD6vtz68qeYSjb5.DMurCqupIolLz/2Zw/WIgCr0rgVpJI2"], ["created_at", "2019-11-21 17:29:22.286089"], ["updated_at", "2019-11-21 17:29:22.286089"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.288269"], ["updated_at", "2019-11-21 17:29:22.288269"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 82], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 102], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 102], ["room_id", 82], ["created_at", "2019-11-21 17:29:22.292075"], ["updated_at", "2019-11-21 17:29:22.292075"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 82], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 102], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 102], ["room_id", 82], ["created_at", "2019-11-21 17:29:22.295481"], ["updated_at", "2019-11-21 17:29:22.295481"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.297479"], ["last_sign_in_at", "2019-11-21 17:29:22.297479"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.298005"], ["id", 102]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 102]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XrNI6bRu4gU/7N0RM2hmjOq9PnnUQ7A99.Ni.LoEOBaFGsn5ddgUq"], ["created_at", "2019-11-21 17:29:22.310782"], ["updated_at", "2019-11-21 17:29:22.310782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.312816"], ["updated_at", "2019-11-21 17:29:22.312816"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 83], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 103], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 103], ["room_id", 83], ["created_at", "2019-11-21 17:29:22.316482"], ["updated_at", "2019-11-21 17:29:22.316482"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/38” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.318569"], ["last_sign_in_at", "2019-11-21 17:29:22.318569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.319083"], ["id", 103]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"38"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 38], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 38]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G1HmP0HYallx8NM49ElnDO758jpWKFHsq3.rFIwEb9aVFQT0/o.uq"], ["created_at", "2019-11-21 17:29:22.333174"], ["updated_at", "2019-11-21 17:29:22.333174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.335521"], ["last_sign_in_at", "2019-11-21 17:29:22.335521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.336094"], ["id", 104]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 36ms (Views: 19.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sWKwdEsld7wlvOkKocGKMuBOTWisvG.bm3iG1okVDn40VC7y768jm"], ["created_at", "2019-11-21 17:29:22.381107"], ["updated_at", "2019-11-21 17:29:22.381107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.383126"], ["updated_at", "2019-11-21 17:29:22.383126"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 84], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 105], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 105], ["room_id", 84], ["created_at", "2019-11-21 17:29:22.386789"], ["updated_at", "2019-11-21 17:29:22.386789"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 84], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 105], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 105], ["room_id", 84], ["created_at", "2019-11-21 17:29:22.390925"], ["updated_at", "2019-11-21 17:29:22.390925"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.393209"], ["last_sign_in_at", "2019-11-21 17:29:22.393209"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.393697"], ["id", 105]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 84], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 105], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 105], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K9UVTQxB0CIn65di/Z6.9Ovv4bLPKAxF3SIL6UnlhO5kpAHHms1Le"], ["created_at", "2019-11-21 17:29:22.407485"], ["updated_at", "2019-11-21 17:29:22.407485"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.409960"], ["updated_at", "2019-11-21 17:29:22.409960"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 85], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 106], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 106], ["room_id", 85], ["created_at", "2019-11-21 17:29:22.413586"], ["updated_at", "2019-11-21 17:29:22.413586"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 85], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 106], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 106], ["room_id", 85], ["created_at", "2019-11-21 17:29:22.417642"], ["updated_at", "2019-11-21 17:29:22.417642"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.419868"], ["last_sign_in_at", "2019-11-21 17:29:22.419868"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.420418"], ["id", 106]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 85], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 106], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 106], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OnbDJWVql7upg5.UmS86f.D2SeReCG2rYnLUzmcYv5ERCZQwVltNO"], ["created_at", "2019-11-21 17:29:22.434694"], ["updated_at", "2019-11-21 17:29:22.434694"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.436948"], ["updated_at", "2019-11-21 17:29:22.436948"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 86], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 107], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 107], ["room_id", 86], ["created_at", "2019-11-21 17:29:22.441022"], ["updated_at", "2019-11-21 17:29:22.441022"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 86], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 107], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 107], ["room_id", 86], ["created_at", "2019-11-21 17:29:22.444757"], ["updated_at", "2019-11-21 17:29:22.444757"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.447003"], ["last_sign_in_at", "2019-11-21 17:29:22.447003"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.447529"], ["id", 107]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i.VuvQnERy2tOFah/8c/bumWBb7lbL9jueOJ3ls8c.AkEmAokPsnO"], ["created_at", "2019-11-21 17:29:22.458651"], ["updated_at", "2019-11-21 17:29:22.458651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.460701"], ["updated_at", "2019-11-21 17:29:22.460701"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 87], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 108], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 108], ["room_id", 87], ["created_at", "2019-11-21 17:29:22.464268"], ["updated_at", "2019-11-21 17:29:22.464268"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 87], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 108], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 108], ["room_id", 87], ["created_at", "2019-11-21 17:29:22.467841"], ["updated_at", "2019-11-21 17:29:22.467841"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.469850"], ["last_sign_in_at", "2019-11-21 17:29:22.469850"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.470281"], ["id", 108]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lJsDMy3BXfdO9dH2OYYDZOE1ScyAA5PKaLgsNp2eSCtyxvMnYthpm"], ["created_at", "2019-11-21 17:29:22.484878"], ["updated_at", "2019-11-21 17:29:22.484878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.487189"], ["last_sign_in_at", "2019-11-21 17:29:22.487189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.487708"], ["id", 109]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 64ms (Views: 47.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PSi4Ke1HPubOAeQzoipLGe.lfXdN9inzYIzVXHC1Wbqsrxpnqoipa"], ["created_at", "2019-11-21 17:29:22.562697"], ["updated_at", "2019-11-21 17:29:22.562697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.564893"], ["last_sign_in_at", "2019-11-21 17:29:22.564893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.565332"], ["id", 110]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YAuIrX9VgNYJoTbrWmoGU.tu9eepEEhCJLiGnN0LdLBn8kxuAVGjC"], ["created_at", "2019-11-21 17:29:22.574714"], ["updated_at", "2019-11-21 17:29:22.574714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.577249"], ["last_sign_in_at", "2019-11-21 17:29:22.577249"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.577857"], ["id", 111]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.1ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cYudtF8XFcbhRBLm0o6s9eFcaQeX/hNaNRHVnGu4puh.kT751WivO"], ["created_at", "2019-11-21 17:29:22.605310"], ["updated_at", "2019-11-21 17:29:22.605310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.607667"], ["last_sign_in_at", "2019-11-21 17:29:22.607667"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.608212"], ["id", 112]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.waOmbCxjHQWhAQ3XWQfpeenMmMYrU0Ej11YmEL39jdcQftmSDceW"], ["created_at", "2019-11-21 17:29:22.627801"], ["updated_at", "2019-11-21 17:29:22.627801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.630526"], ["updated_at", "2019-11-21 17:29:22.630526"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/88” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.632616"], ["last_sign_in_at", "2019-11-21 17:29:22.632616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.633188"], ["id", 113]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"88"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 88], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 18ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W8MX0Gr9VoIvrsCo3OPBBeCo42/C1rBFc1ZY5sct2XIFGqRK89sFy"], ["created_at", "2019-11-21 17:29:22.660251"], ["updated_at", "2019-11-21 17:29:22.660251"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.662516"], ["updated_at", "2019-11-21 17:29:22.662516"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/89” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.664741"], ["last_sign_in_at", "2019-11-21 17:29:22.664741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.665371"], ["id", 114]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"89"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 89], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.675723"], ["updated_at", "2019-11-21 17:29:22.675723"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/90” for 127.0.0.1 at 2019-11-21 14:29:22 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"90"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4iQ1oBRtie7UIS/09BP2vOZ1lM6ZdMYVETaU4oR/raBBDRkULUESq"], ["created_at", "2019-11-21 17:29:22.686321"], ["updated_at", "2019-11-21 17:29:22.686321"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.688700"], ["updated_at", "2019-11-21 17:29:22.688700"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/91/edit” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.691153"], ["last_sign_in_at", "2019-11-21 17:29:22.691153"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.691687"], ["id", 115]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"91"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 91], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Pe2e/I8Iegtd7p2SwbKTIOxeuCPlai.LWXS1lt.rKkl7E8OEEY7VC"], ["created_at", "2019-11-21 17:29:22.719748"], ["updated_at", "2019-11-21 17:29:22.719748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.722081"], ["updated_at", "2019-11-21 17:29:22.722081"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/92/edit” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.724636"], ["last_sign_in_at", "2019-11-21 17:29:22.724636"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.725231"], ["id", 116]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"92"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 92], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.736458"], ["updated_at", "2019-11-21 17:29:22.736458"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/93” for 127.0.0.1 at 2019-11-21 14:29:22 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"93"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G4CFGizq6XXBH/LvoUzBBe1tS7ptBWqzfgni38XFja0w14mJ/O7di"], ["created_at", "2019-11-21 17:29:22.748266"], ["updated_at", "2019-11-21 17:29:22.748266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.750859"], ["last_sign_in_at", "2019-11-21 17:29:22.750859"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.751428"], ["id", 117]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.754868"], ["updated_at", "2019-11-21 17:29:22.754868"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jPbZFThYmcTRFOgraneA8Otb/TyPU9YPGI5r9vhL0cVH18CgdKs7G"], ["created_at", "2019-11-21 17:29:22.764538"], ["updated_at", "2019-11-21 17:29:22.764538"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.767369"], ["last_sign_in_at", "2019-11-21 17:29:22.767369"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.767943"], ["id", 118]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.772539"], ["updated_at", "2019-11-21 17:29:22.772539"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 16ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eWivxX.NykatGsFqgTS9u.frDW.1SghasgaCrUhkWAR/3h28TQcO2"], ["created_at", "2019-11-21 17:29:22.794307"], ["updated_at", "2019-11-21 17:29:22.794307"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.797099"], ["last_sign_in_at", "2019-11-21 17:29:22.797099"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.797629"], ["id", 119]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5X9Dbmb5Vrinw4U2h8OK9u2Df/ys4d82VmDG./43uPfxykDh1TmXW"], ["created_at", "2019-11-21 17:29:22.809208"], ["updated_at", "2019-11-21 17:29:22.809208"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.812346"], ["last_sign_in_at", "2019-11-21 17:29:22.812346"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.812971"], ["id", 120]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1sBv7ZyianlAc70uSlVJ6.RcV/WpcXpE2pn4vWq8MZVQTplL0UD6K"], ["created_at", "2019-11-21 17:29:22.824821"], ["updated_at", "2019-11-21 17:29:22.824821"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.827530"], ["last_sign_in_at", "2019-11-21 17:29:22.827530"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.828012"], ["id", 121]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MwysD.PqSd.Bx5KurOOKbubTkIJSEmWRspl3KYF2T8.fmG2z4xrXm"], ["created_at", "2019-11-21 17:29:22.838868"], ["updated_at", "2019-11-21 17:29:22.838868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.841688"], ["updated_at", "2019-11-21 17:29:22.841688"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/96” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.844123"], ["last_sign_in_at", "2019-11-21 17:29:22.844123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.844658"], ["id", 122]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"96"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 96], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 17:29:22.848460"], ["id", 96]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/96 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fpbLffcUOlHB7R.Rw.o.aOmqKyTAe08c0ehuozoQ0F/aJmdiPVPO2"], ["created_at", "2019-11-21 17:29:22.857089"], ["updated_at", "2019-11-21 17:29:22.857089"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.859420"], ["updated_at", "2019-11-21 17:29:22.859420"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/97” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.861907"], ["last_sign_in_at", "2019-11-21 17:29:22.861907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.862422"], ["id", 123]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"97"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 97], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 17:29:22.866221"], ["id", 97]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/97 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vlALwi25Jo3/UsMUwqfI9.X6za0N8TGWWAamT1x6Jqek302gDzkSe"], ["created_at", "2019-11-21 17:29:22.875723"], ["updated_at", "2019-11-21 17:29:22.875723"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.878017"], ["updated_at", "2019-11-21 17:29:22.878017"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/98” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.880531"], ["last_sign_in_at", "2019-11-21 17:29:22.880531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.881072"], ["id", 124]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"98"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 98], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xBuVojLt7woH/L4WEez/JO3YikZU0lqsRxkE7wnA.q6ak28q3KtBC"], ["created_at", "2019-11-21 17:29:22.895606"], ["updated_at", "2019-11-21 17:29:22.895606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.898379"], ["updated_at", "2019-11-21 17:29:22.898379"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/99” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.900921"], ["last_sign_in_at", "2019-11-21 17:29:22.900921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.901479"], ["id", 125]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"99"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 99], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D7UJj40b4nVGv4QRWSbblOc2PPh1HWMQbUglgd8ZbFCCOeExQHPNy"], ["created_at", "2019-11-21 17:29:22.916774"], ["updated_at", "2019-11-21 17:29:22.916774"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.919400"], ["last_sign_in_at", "2019-11-21 17:29:22.919400"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.919887"], ["id", 126]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LIORdaRl4ZGK8KoXFkgO1OUGFrWaQ/vQPx5I.yNSKr05Eo4pZSUs2"], ["created_at", "2019-11-21 17:29:22.930337"], ["updated_at", "2019-11-21 17:29:22.930337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.933213"], ["updated_at", "2019-11-21 17:29:22.933213"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/100” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.935157"], ["last_sign_in_at", "2019-11-21 17:29:22.935157"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.935645"], ["id", 127]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"100"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 100], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 100]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yz55u0gUUd9wNNTz6odfZOXWTFgvIAYfZVtV9NzZ3lnO4.YlYVg9y"], ["created_at", "2019-11-21 17:29:22.946898"], ["updated_at", "2019-11-21 17:29:22.946898"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.949132"], ["updated_at", "2019-11-21 17:29:22.949132"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/101” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.951071"], ["last_sign_in_at", "2019-11-21 17:29:22.951071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.951654"], ["id", 128]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"101"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 101], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 101]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vzIknoqvVoH7/VXL.cQib.Ory7IG/4qFg7hfnyumqNhzjsNqxh32u"], ["created_at", "2019-11-21 17:29:22.963715"], ["updated_at", "2019-11-21 17:29:22.963715"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.966008"], ["updated_at", "2019-11-21 17:29:22.966008"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/102” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.967916"], ["last_sign_in_at", "2019-11-21 17:29:22.967916"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.968417"], ["id", 129]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"102"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vABUl7fU8l5nC2DGx1uPLupfgMoltPyGEcXl.Gs1hqNwkmkaCvwK."], ["created_at", "2019-11-21 17:29:22.978172"], ["updated_at", "2019-11-21 17:29:22.978172"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:29:22.980573"], ["updated_at", "2019-11-21 17:29:22.980573"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/103” for 127.0.0.1 at 2019-11-21 14:29:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:29:22.982466"], ["last_sign_in_at", "2019-11-21 17:29:22.982466"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:29:22.982940"], ["id", 130]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"103"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (1.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (27.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (24.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$997UUBDlPLdnHJhm.GKwlO6a3aJsBnjrXXh5XHVY.w5nQr3vyEUrq"], ["created_at", "2019-11-21 17:51:25.351003"], ["updated_at", "2019-11-21 17:51:25.351003"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:25.387874"], ["updated_at", "2019-11-21 17:51:25.387874"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:51:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (13.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:25.492519"], ["last_sign_in_at", "2019-11-21 17:51:25.492519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:25.493191"], ["id", 131]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"104"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 104], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 131], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 131], ["room_id", 104], ["created_at", "2019-11-21 17:51:25.602277"], ["updated_at", "2019-11-21 17:51:25.602277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 78ms (ActiveRecord: 2.2ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 104], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fOtLHim/zZI3JXzjdyhnSOAmHfN.WRi97X8MjogfEtVTThcpke3OC"], ["created_at", "2019-11-21 17:51:25.646385"], ["updated_at", "2019-11-21 17:51:25.646385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:25.648688"], ["updated_at", "2019-11-21 17:51:25.648688"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:51:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:25.651065"], ["last_sign_in_at", "2019-11-21 17:51:25.651065"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:25.651555"], ["id", 132]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"105"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 105], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 132], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 132], ["room_id", 105], ["created_at", "2019-11-21 17:51:25.656682"], ["updated_at", "2019-11-21 17:51:25.656682"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$T4XtkGnNVbVgdDgqMERdSegNQDsFB90Vn5i2Fz2vzWOFeWuftloa6"], ["created_at", "2019-11-21 17:51:25.665287"], ["updated_at", "2019-11-21 17:51:25.665287"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:25.667584"], ["updated_at", "2019-11-21 17:51:25.667584"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:51:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:25.670130"], ["last_sign_in_at", "2019-11-21 17:51:25.670130"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:25.670649"], ["id", 133]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"106"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 106], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VXBXbxd2iugSfi0U6Dj/buEeLrEjZze4es2nHU/TjFjnX8oM6cHze"], ["created_at", "2019-11-21 17:51:25.679600"], ["updated_at", "2019-11-21 17:51:25.679600"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:25.681895"], ["updated_at", "2019-11-21 17:51:25.681895"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 14:51:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:25.684156"], ["last_sign_in_at", "2019-11-21 17:51:25.684156"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:25.684666"], ["id", 134]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"107"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pTt/riPIq4oI9pM//pa5u.fuFxqL0A7/EDuq3xfqa9dodcqElDH/e"], ["created_at", "2019-11-21 17:51:25.694303"], ["updated_at", "2019-11-21 17:51:25.694303"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:25.696498"], ["updated_at", "2019-11-21 17:51:25.696498"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 108], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 135], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 135], ["room_id", 108], ["created_at", "2019-11-21 17:51:25.700230"], ["updated_at", "2019-11-21 17:51:25.700230"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/108” for 127.0.0.1 at 2019-11-21 14:51:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:25.702764"], ["last_sign_in_at", "2019-11-21 17:51:25.702764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:25.703311"], ["id", 135]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"108"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 108], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '108')
Rendered appointments/show.html.erb within layouts/application (117.3ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 756ms (Views: 709.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ipgxvJHxnrWLZoRaB.6iYOxE4XtASkj/CH7kWnZDTHlmts9N2gqR2"], ["created_at", "2019-11-21 17:51:26.468698"], ["updated_at", "2019-11-21 17:51:26.468698"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.470925"], ["updated_at", "2019-11-21 17:51:26.470925"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 109], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 136], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 136], ["room_id", 109], ["created_at", "2019-11-21 17:51:26.474814"], ["updated_at", "2019-11-21 17:51:26.474814"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 109], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 136], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 136], ["room_id", 109], ["created_at", "2019-11-21 17:51:26.478888"], ["updated_at", "2019-11-21 17:51:26.478888"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.481190"], ["last_sign_in_at", "2019-11-21 17:51:26.481190"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.481714"], ["id", 136]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 136]]
Rendered appointments/my_appointments.html.erb within layouts/application (27.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 96ms (Views: 28.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HCi6ri9SooJpGraQ12sg9uBCG./m2myrPVS3JXAmoEooulaXrmgo."], ["created_at", "2019-11-21 17:51:26.585620"], ["updated_at", "2019-11-21 17:51:26.585620"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.587782"], ["updated_at", "2019-11-21 17:51:26.587782"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 110], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 137], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 137], ["room_id", 110], ["created_at", "2019-11-21 17:51:26.591484"], ["updated_at", "2019-11-21 17:51:26.591484"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 110], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 137], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 137], ["room_id", 110], ["created_at", "2019-11-21 17:51:26.595222"], ["updated_at", "2019-11-21 17:51:26.595222"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.597473"], ["last_sign_in_at", "2019-11-21 17:51:26.597473"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.597924"], ["id", 137]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 137]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jQ0a65RBR/UHMxu/L4R3ROu.hGaecaHLbt2BOn6jpxOw25P1a.RQO"], ["created_at", "2019-11-21 17:51:26.610300"], ["updated_at", "2019-11-21 17:51:26.610300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.612510"], ["updated_at", "2019-11-21 17:51:26.612510"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 111], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 138], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 138], ["room_id", 111], ["created_at", "2019-11-21 17:51:26.616253"], ["updated_at", "2019-11-21 17:51:26.616253"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/54” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.618401"], ["last_sign_in_at", "2019-11-21 17:51:26.618401"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.618908"], ["id", 138]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"54"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 54], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 54]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gL1dsmVuCClxDJqBiYBznuVLtqHYN87E.SQuCAMFxq9OdWo/Jvg.W"], ["created_at", "2019-11-21 17:51:26.632068"], ["updated_at", "2019-11-21 17:51:26.632068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.634410"], ["last_sign_in_at", "2019-11-21 17:51:26.634410"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.634925"], ["id", 139]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 35ms (Views: 19.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O6/qr3YfKQpcCKLRt2P4Q.zxwrGLGMTWJMKiT76ZXJWMDerob2hqy"], ["created_at", "2019-11-21 17:51:26.678997"], ["updated_at", "2019-11-21 17:51:26.678997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.681497"], ["updated_at", "2019-11-21 17:51:26.681497"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 112], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 140], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 140], ["room_id", 112], ["created_at", "2019-11-21 17:51:26.685136"], ["updated_at", "2019-11-21 17:51:26.685136"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 112], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 140], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 140], ["room_id", 112], ["created_at", "2019-11-21 17:51:26.688858"], ["updated_at", "2019-11-21 17:51:26.688858"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.691318"], ["last_sign_in_at", "2019-11-21 17:51:26.691318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.691902"], ["id", 140]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 112], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 140], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 140], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cjVswfizXsyEoNvSdEYX3.RMmPcwHckZ/1JGklFiCjyMA5prXQ.XW"], ["created_at", "2019-11-21 17:51:26.704782"], ["updated_at", "2019-11-21 17:51:26.704782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.707068"], ["updated_at", "2019-11-21 17:51:26.707068"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 113], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 141], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 141], ["room_id", 113], ["created_at", "2019-11-21 17:51:26.711114"], ["updated_at", "2019-11-21 17:51:26.711114"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 113], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 141], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 141], ["room_id", 113], ["created_at", "2019-11-21 17:51:26.727124"], ["updated_at", "2019-11-21 17:51:26.727124"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.729666"], ["last_sign_in_at", "2019-11-21 17:51:26.729666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.730191"], ["id", 141]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 113], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 141], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 141], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/J882qkvg1rrXSYoIAtFzO032P7bgHOh9j0bpzXZ4Zi3emO1.sDGK"], ["created_at", "2019-11-21 17:51:26.744328"], ["updated_at", "2019-11-21 17:51:26.744328"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.746505"], ["updated_at", "2019-11-21 17:51:26.746505"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 114], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 142], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 142], ["room_id", 114], ["created_at", "2019-11-21 17:51:26.750145"], ["updated_at", "2019-11-21 17:51:26.750145"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 114], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 142], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 142], ["room_id", 114], ["created_at", "2019-11-21 17:51:26.754121"], ["updated_at", "2019-11-21 17:51:26.754121"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.756482"], ["last_sign_in_at", "2019-11-21 17:51:26.756482"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.757045"], ["id", 142]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h0h.f9JeiflepWtRg2pgg.5RfqdoLfK4B0NzG9wO5QPvRR/ojtrJC"], ["created_at", "2019-11-21 17:51:26.767901"], ["updated_at", "2019-11-21 17:51:26.767901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.770169"], ["updated_at", "2019-11-21 17:51:26.770169"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 115], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 143], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 143], ["room_id", 115], ["created_at", "2019-11-21 17:51:26.773990"], ["updated_at", "2019-11-21 17:51:26.773990"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 115], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 143], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 143], ["room_id", 115], ["created_at", "2019-11-21 17:51:26.777955"], ["updated_at", "2019-11-21 17:51:26.777955"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.780284"], ["last_sign_in_at", "2019-11-21 17:51:26.780284"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.780800"], ["id", 143]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wkRMzIc8nf1gfexMHE7QAe/OHcT8JmuZWkCxbIZPbIVTz1ghfNO5q"], ["created_at", "2019-11-21 17:51:26.793477"], ["updated_at", "2019-11-21 17:51:26.793477"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.795742"], ["last_sign_in_at", "2019-11-21 17:51:26.795742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.796307"], ["id", 144]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (27.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 86ms (Views: 66.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1hZiJhS0nJfEsleMUQj7pOFFYNZo1X9hiL3y/.cT.BGCs4eadFaky"], ["created_at", "2019-11-21 17:51:26.902170"], ["updated_at", "2019-11-21 17:51:26.902170"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.904552"], ["last_sign_in_at", "2019-11-21 17:51:26.904552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.905083"], ["id", 145]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/NmjrM4QWkj.mlhd4btkqOr7Wtc14YGMplyHAC0GGMWeaZxjmHaXq"], ["created_at", "2019-11-21 17:51:26.914710"], ["updated_at", "2019-11-21 17:51:26.914710"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.916954"], ["last_sign_in_at", "2019-11-21 17:51:26.916954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.917521"], ["id", 146]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 32ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fiGXfetcVg.4UH442Cn2..S5ur6O8uRRkXM3XhL5LvFE6uX3cYfTW"], ["created_at", "2019-11-21 17:51:26.958011"], ["updated_at", "2019-11-21 17:51:26.958011"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.960324"], ["last_sign_in_at", "2019-11-21 17:51:26.960324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.960822"], ["id", 147]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 14:51:26 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RQ.C93Z1g545XZPjedS9V.1OL/RRCP3aXXE40cm87IpQTDOOB1Vjy"], ["created_at", "2019-11-21 17:51:26.979183"], ["updated_at", "2019-11-21 17:51:26.979183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:26.981599"], ["updated_at", "2019-11-21 17:51:26.981599"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/116” for 127.0.0.1 at 2019-11-21 14:51:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:26.983891"], ["last_sign_in_at", "2019-11-21 17:51:26.983891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:26.984442"], ["id", 148]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"116"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 116], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 18ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CQBGtIN1wUgd74HPr82UyuVKRVpS5P.Fl7GWBmUBqm8x5gqZ5BpnS"], ["created_at", "2019-11-21 17:51:27.011115"], ["updated_at", "2019-11-21 17:51:27.011115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.013518"], ["updated_at", "2019-11-21 17:51:27.013518"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/117” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.015637"], ["last_sign_in_at", "2019-11-21 17:51:27.015637"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.016209"], ["id", 149]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"117"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 117], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.025944"], ["updated_at", "2019-11-21 17:51:27.025944"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/118” for 127.0.0.1 at 2019-11-21 14:51:27 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"118"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hyeUyz3iGRufaQt3.Tz.4OyG31uJGrjNFOcmJrRkEYrPrwj7cBdLu"], ["created_at", "2019-11-21 17:51:27.035884"], ["updated_at", "2019-11-21 17:51:27.035884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.038132"], ["updated_at", "2019-11-21 17:51:27.038132"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/119/edit” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.040368"], ["last_sign_in_at", "2019-11-21 17:51:27.040368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.040907"], ["id", 150]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"119"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 119], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 21ms (Views: 4.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Joz5gph2G9PLGV9ptmBx9u7MAFqrt6LIMrz2TVaabbZKb37x7cwte"], ["created_at", "2019-11-21 17:51:27.070178"], ["updated_at", "2019-11-21 17:51:27.070178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.072764"], ["updated_at", "2019-11-21 17:51:27.072764"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/120/edit” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.075477"], ["last_sign_in_at", "2019-11-21 17:51:27.075477"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.076008"], ["id", 151]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"120"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 120], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.088567"], ["updated_at", "2019-11-21 17:51:27.088567"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/121” for 127.0.0.1 at 2019-11-21 14:51:27 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"121"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U/Z6E9h7QE6ms5VkA2Kp/umAiqVJRNbyLvQaJlI/5lBvFnpr13juK"], ["created_at", "2019-11-21 17:51:27.100266"], ["updated_at", "2019-11-21 17:51:27.100266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.105676"], ["last_sign_in_at", "2019-11-21 17:51:27.105676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.106468"], ["id", 152]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.110552"], ["updated_at", "2019-11-21 17:51:27.110552"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aedMB0mbRPu5pGIpR0Disuahl3dkc8sCmAO8NjqahBINFUL3AUJuW"], ["created_at", "2019-11-21 17:51:27.119974"], ["updated_at", "2019-11-21 17:51:27.119974"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.122959"], ["last_sign_in_at", "2019-11-21 17:51:27.122959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.123495"], ["id", 153]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.127159"], ["updated_at", "2019-11-21 17:51:27.127159"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v5Tg62Rc/0K4CXhAaXEOI.IxSqI4.wtONZKyP.VUFWi0xnM3yNTOK"], ["created_at", "2019-11-21 17:51:27.135639"], ["updated_at", "2019-11-21 17:51:27.135639"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.138791"], ["last_sign_in_at", "2019-11-21 17:51:27.138791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.139279"], ["id", 154]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (12.5ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 15ms (ActiveRecord: 12.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iSJhk4/CQzfvgTVs8Fsr8O/v.hHsLM9fluCTB9lwQnp1aruADRL.m"], ["created_at", "2019-11-21 17:51:27.163706"], ["updated_at", "2019-11-21 17:51:27.163706"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.166716"], ["last_sign_in_at", "2019-11-21 17:51:27.166716"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.167218"], ["id", 155]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gWKL/roMIsMoQF1y3GuUCuEHk1zxyLsxaPnaGyLXYW0FQdlCu3ylO"], ["created_at", "2019-11-21 17:51:27.178873"], ["updated_at", "2019-11-21 17:51:27.178873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.181821"], ["last_sign_in_at", "2019-11-21 17:51:27.181821"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.182323"], ["id", 156]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UD7Va0jGldu0xqOH9OxWgesQE1/MB.rsu3SSRPky6zQe46zGcMUyO"], ["created_at", "2019-11-21 17:51:27.192497"], ["updated_at", "2019-11-21 17:51:27.192497"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.195076"], ["updated_at", "2019-11-21 17:51:27.195076"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/124” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.197679"], ["last_sign_in_at", "2019-11-21 17:51:27.197679"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.198180"], ["id", 157]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"124"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 124], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 17:51:27.202164"], ["id", 124]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/124 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FoOHESsHjuaESKdrs9LHde4Hs8KEZ.eh.Q7Sym0IsAGqAjvnoW7uS"], ["created_at", "2019-11-21 17:51:27.210663"], ["updated_at", "2019-11-21 17:51:27.210663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.213013"], ["updated_at", "2019-11-21 17:51:27.213013"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/125” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.215827"], ["last_sign_in_at", "2019-11-21 17:51:27.215827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.216376"], ["id", 158]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"125"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 125], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-21 17:51:27.220497"], ["id", 125]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/125 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/ThuN/XiKHVg6wJfABYGeet.3Pb.GRreO6M3g/jfozQnuuJWm3aGu"], ["created_at", "2019-11-21 17:51:27.229254"], ["updated_at", "2019-11-21 17:51:27.229254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.231740"], ["updated_at", "2019-11-21 17:51:27.231740"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/126” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.234567"], ["last_sign_in_at", "2019-11-21 17:51:27.234567"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.235063"], ["id", 159]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"126"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 126], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qzK2gAgQk8kAdDwScfbV4ea1pFw8MYg4dD3yz9hFvfyEZaMTosVLa"], ["created_at", "2019-11-21 17:51:27.250984"], ["updated_at", "2019-11-21 17:51:27.250984"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.253279"], ["updated_at", "2019-11-21 17:51:27.253279"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/127” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.255570"], ["last_sign_in_at", "2019-11-21 17:51:27.255570"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.256033"], ["id", 160]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"127"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 127], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vF5h/OROjuaXbjmVuwezA.AffFWpqSHy3tCiB09w6lGrhkeg24CQy"], ["created_at", "2019-11-21 17:51:27.271941"], ["updated_at", "2019-11-21 17:51:27.271941"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.274863"], ["last_sign_in_at", "2019-11-21 17:51:27.274863"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.275453"], ["id", 161]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rqPHCKfeJEWi3tjoqJEuXOHymtWGcYYFbzgf0GVyQDcdH3/T8WJbG"], ["created_at", "2019-11-21 17:51:27.285932"], ["updated_at", "2019-11-21 17:51:27.285932"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.288312"], ["updated_at", "2019-11-21 17:51:27.288312"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/128” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.290308"], ["last_sign_in_at", "2019-11-21 17:51:27.290308"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.291063"], ["id", 162]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"128"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 128], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 128]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Unu48CkpOACAYub08HWY9urBIAg1NmBqWBSZUi3WWgn8v2cbrX5v2"], ["created_at", "2019-11-21 17:51:27.311958"], ["updated_at", "2019-11-21 17:51:27.311958"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.314438"], ["updated_at", "2019-11-21 17:51:27.314438"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/129” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.316404"], ["last_sign_in_at", "2019-11-21 17:51:27.316404"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.316934"], ["id", 163]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"129"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 129], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 129]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2liPTNiazKk6aN/TSBJnvepy0CltWtVtwLogaU4As7qG6kw4TS6XS"], ["created_at", "2019-11-21 17:51:27.327934"], ["updated_at", "2019-11-21 17:51:27.327934"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.330039"], ["updated_at", "2019-11-21 17:51:27.330039"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/130” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.331813"], ["last_sign_in_at", "2019-11-21 17:51:27.331813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.332265"], ["id", 164]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"130"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dRN/qctTgPFY.TzuRRURhubc.sRAUyy8yEIl1qWHmF6SB4FOJTvBi"], ["created_at", "2019-11-21 17:51:27.341054"], ["updated_at", "2019-11-21 17:51:27.341054"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-21 17:51:27.343207"], ["updated_at", "2019-11-21 17:51:27.343207"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/131” for 127.0.0.1 at 2019-11-21 14:51:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 17:51:27.345065"], ["last_sign_in_at", "2019-11-21 17:51:27.345065"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 17:51:27.345538"], ["id", 165]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"131"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (23.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (4.2ms)

Completed 200 OK in 495ms (Views: 477.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (87.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (71.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$o0WhhvIBjwiADe.fTvQpZOOI4dbsp0iuHiHEeFvlmElSRB28Gucze"], ["created_at", "2019-11-21 23:54:30.252457"], ["updated_at", "2019-11-21 23:54:30.252457"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (47.5ms)
Rendered users/sessions/new.html.erb within layouts/application (65.2ms)

Completed 200 OK in 261ms (Views: 257.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:30 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:30.660954"], ["last_sign_in_at", "2019-11-21 23:54:30.660954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:30.661671"], ["id", 166]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 223ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 166], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 52ms (Views: 34.3ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:30 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (9.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$mWV3B.NAkxao1eFd.akzf.Ik32Dazg0Hg8M0dXiRL7vkUG/ZELPy."], ["created_at", "2019-11-21 23:54:31.011693"], ["updated_at", "2019-11-21 23:54:31.011693"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$gRVf2m10LftQWE5qy/4.euWEmE8cYe5.NduhO2R0TlsFUjVaeF9/2"], ["created_at", "2019-11-21 23:54:31.051875"], ["updated_at", "2019-11-21 23:54:31.051875"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:31.065634"], ["last_sign_in_at", "2019-11-21 23:54:31.065634"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:31.066293"], ["id", 168]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 168], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 40ms (Views: 39.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (106.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:31.136991"], ["updated_at", "2019-11-21 23:54:31.136991"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 132], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 168], ["LIMIT", 1]]
SQL (72.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 168], ["room_id", 132], ["created_at", "2019-11-21 23:54:31.304234"], ["updated_at", "2019-11-21 23:54:31.304234"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 168], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 168]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 186ms (Views: 42.8ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/63” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"63"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 63], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 63]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 168], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$NvdM4KkYt4eqgmr5kLCPo.KfM1WXEpeE4QdWwbNf9t.7NAU3UU9ba"], ["created_at", "2019-11-21 23:54:31.605069"], ["updated_at", "2019-11-21 23:54:31.605069"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:31.620687"], ["last_sign_in_at", "2019-11-21 23:54:31.620687"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:31.621542"], ["id", 169]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 169], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-21 23:54:31.633950"], ["updated_at", "2019-11-21 23:54:31.633950"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 133], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 169], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 169], ["room_id", 133], ["created_at", "2019-11-21 23:54:31.641175"], ["updated_at", "2019-11-21 23:54:31.641175"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 169], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 169]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/64” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"64"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 64], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 64]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 169], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$H5p7l644f7BCwT9le/nQEeDxKsrSXSYvtkorrpBXkjgsrOuhduIem"], ["created_at", "2019-11-21 23:54:31.680365"], ["updated_at", "2019-11-21 23:54:31.680365"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.3ms)
Rendered users/sessions/new.html.erb within layouts/application (2.9ms)

Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:31.699216"], ["last_sign_in_at", "2019-11-21 23:54:31.699216"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:31.699787"], ["id", 170]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 170], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:31.730216"], ["updated_at", "2019-11-21 23:54:31.730216"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 134], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 170], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 170], ["room_id", 134], ["created_at", "2019-11-21 23:54:31.735755"], ["updated_at", "2019-11-21 23:54:31.735755"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 170], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 170]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$0zUrOvfnyLM05q4dT4Xox.T7a5UgsdkVNI8hetYUpJc1KG.NulxiW"], ["created_at", "2019-11-21 23:54:31.756184"], ["updated_at", "2019-11-21 23:54:31.756184"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:31.769597"], ["last_sign_in_at", "2019-11-21 23:54:31.769597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:31.770161"], ["id", 171]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 171], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-21 23:54:31.779771"], ["updated_at", "2019-11-21 23:54:31.779771"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 135], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 171], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 171], ["room_id", 135], ["created_at", "2019-11-21 23:54:31.785277"], ["updated_at", "2019-11-21 23:54:31.785277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 171], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 171]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$c2/y2CJzJ/g27ugzTx5qcOkJoSaPkIwDfDKI6KLPnyVJUvTheTX2m"], ["created_at", "2019-11-21 23:54:31.809793"], ["updated_at", "2019-11-21 23:54:31.809793"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:31.822782"], ["last_sign_in_at", "2019-11-21 23:54:31.822782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:31.823742"], ["id", 172]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 172], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-21 23:54:31.837419"], ["updated_at", "2019-11-21 23:54:31.837419"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:31.840103"], ["updated_at", "2019-11-21 23:54:31.840103"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 172], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 86ms (Views: 38.6ms | ActiveRecord: 0.8ms) Started GET “/appointments/136” for 127.0.0.1 at 2019-11-21 20:54:31 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"136"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 136], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (41.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '136')
Rendered appointments/show.html.erb within layouts/application (144.8ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 172], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 169ms (Views: 105.8ms | ActiveRecord: 42.4ms) Started POST “/appointments.136” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 172], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 136], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 172], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 172], ["room_id", 136], ["created_at", "2019-11-21 23:54:32.167355"], ["updated_at", "2019-11-21 23:54:32.167355"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 172], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$BH2QzhUDPxvQVwESlA7f7.mQta8IZdDY5x/0A/NKFXLvK585pjfpe"], ["created_at", "2019-11-21 23:54:32.184856"], ["updated_at", "2019-11-21 23:54:32.184856"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:32.197816"], ["last_sign_in_at", "2019-11-21 23:54:32.197816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.198503"], ["id", 173]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 173], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-21 23:54:32.211903"], ["updated_at", "2019-11-21 23:54:32.211903"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:32.214013"], ["updated_at", "2019-11-21 23:54:32.214013"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 173], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms) Started GET “/appointments/138” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"138"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 138], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '138')
Rendered appointments/show.html.erb within layouts/application (1.4ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 173], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 1.2ms) Started POST “/appointments.138” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 173], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 173], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$zCXmxf0zoM82kUwguBYWNuwDEFpCOU7rhPhiHBiPuf9XIIA2PSSKa"], ["created_at", "2019-11-21 23:54:32.274011"], ["updated_at", "2019-11-21 23:54:32.274011"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:32.287232"], ["last_sign_in_at", "2019-11-21 23:54:32.287232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.287801"], ["id", 174]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 174], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-21 23:54:32.298758"], ["updated_at", "2019-11-21 23:54:32.298758"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 174], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 174], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/140” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"140"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 174], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 140], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 140]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 174], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$j3b3m65GnQFL7GqKM5QMlOuVmAqdGtDy0Bne3IlcvWfwrmtoWqaVm"], ["created_at", "2019-11-21 23:54:32.346207"], ["updated_at", "2019-11-21 23:54:32.346207"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-21 23:54:32.348709"], ["updated_at", "2019-11-21 23:54:32.348709"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:32.377885"], ["last_sign_in_at", "2019-11-21 23:54:32.377885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.378509"], ["id", 175]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 175], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 175], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started GET “/rooms/141/edit” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"141"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 175], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 141], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (5.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 25ms (Views: 7.2ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/141” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"141"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 175], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 141], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-21 23:54:32.445829"], ["id", 141]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/141 Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/rooms/141” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"141"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 175], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 141], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 2.1ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$4meE0RN3qnS1eLeg8dF3ueyGodTmqjJNICQ.zyUPLgN7vVLNm75RS"], ["created_at", "2019-11-21 23:54:32.485391"], ["updated_at", "2019-11-21 23:54:32.485391"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:32.498495"], ["last_sign_in_at", "2019-11-21 23:54:32.498495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.499080"], ["id", 176]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 176], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-21 23:54:32.512269"], ["updated_at", "2019-11-21 23:54:32.512269"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:32.514749"], ["updated_at", "2019-11-21 23:54:32.514749"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 176], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$jeXxayQIxJSmjCXumhFNcO619ayjQw6QIB.wUmwfxLrF6.MUiaHm."], ["created_at", "2019-11-21 23:54:32.546597"], ["updated_at", "2019-11-21 23:54:32.546597"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:32.559536"], ["last_sign_in_at", "2019-11-21 23:54:32.559536"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.560106"], ["id", 177]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 177], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-21 23:54:32.573062"], ["updated_at", "2019-11-21 23:54:32.573062"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-21 23:54:32.575027"], ["updated_at", "2019-11-21 23:54:32.575027"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 177], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$RM7cPYYgdlP9rHbUeqgoo.MF7g4KXjXrYPbeQSoG1dSI5E/oC7/HO"], ["created_at", "2019-11-21 23:54:32.603362"], ["updated_at", "2019-11-21 23:54:32.603362"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:32.630159"], ["last_sign_in_at", "2019-11-21 23:54:32.630159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.630771"], ["id", 178]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 178], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (2.1ms)
Rendered users/registrations/new.html.erb within layouts/application (27.4ms)

Completed 200 OK in 118ms (Views: 117.5ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$Y8t26uRt/icF7AOeSFzNNekWgU5rZU3m/lfMdS7PwiNNACNZ8oNzq"], ["created_at", "2019-11-21 23:54:32.847548"], ["updated_at", "2019-11-21 23:54:32.847548"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-21 23:54:32.849333"], ["last_sign_in_at", "2019-11-21 23:54:32.849333"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-21 23:54:32.849806"], ["id", 179]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 85ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 179], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$mNLZA8aN35lRA42eITOZnemrJ3V.L8Zy.jBB52EkdNTmdLBXHLa9i"], ["created_at", "2019-11-21 23:54:32.946803"], ["updated_at", "2019-11-21 23:54:32.946803"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-21 23:54:32.975459"], ["last_sign_in_at", "2019-11-21 23:54:32.975459"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-21 23:54:32.976076"], ["id", 180]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 180], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/users/180/edit” for 127.0.0.1 at 2019-11-21 20:54:32 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"180"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 180], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 53ms (Views: 51.8ms | ActiveRecord: 0.5ms) Started PUT “/users/180” for 127.0.0.1 at 2019-11-21 20:54:33 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"180"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 180], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 180], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 180], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-21 23:54:33.073771"], ["id", 180]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 153ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 20:54:33 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 180], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (4.2ms)

Completed 200 OK in 312ms (Views: 294.2ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$5KXEXdGDPLetZsblpnKU2OVC4HklwftySZA1PUUZ8R9x4xHEaQpB."], ["created_at", "2019-11-22 00:04:36.529816"], ["updated_at", "2019-11-22 00:04:36.529816"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (45.0ms)
Rendered users/sessions/new.html.erb within layouts/application (61.1ms)

Completed 200 OK in 207ms (Views: 203.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:36.813223"], ["last_sign_in_at", "2019-11-22 00:04:36.813223"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:36.813963"], ["id", 181]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 160ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:36 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 181], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.1ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 52ms (Views: 34.2ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$YTOE1kNoBYnzTsiRmn7pUeXSOaIuXjjVYmJnj2eixTExJI7GN5UzS"], ["created_at", "2019-11-22 00:04:37.039405"], ["updated_at", "2019-11-22 00:04:37.039405"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 4ms (ActiveRecord: 0.8ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$dWU/zYoDuNNwSu76aMC4/etn9hkWYsKSdpxlEmP/m8oDQeDYNhaja"], ["created_at", "2019-11-22 00:04:37.134023"], ["updated_at", "2019-11-22 00:04:37.134023"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.2ms)
Rendered users/sessions/new.html.erb within layouts/application (5.0ms)

Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:37.154080"], ["last_sign_in_at", "2019-11-22 00:04:37.154080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.154844"], ["id", 183]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 183], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:37.203315"], ["updated_at", "2019-11-22 00:04:37.203315"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.5ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 146], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 183], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 183], ["room_id", 146], ["created_at", "2019-11-22 00:04:37.263820"], ["updated_at", "2019-11-22 00:04:37.263820"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 183], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 183]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 74ms (Views: 41.2ms | ActiveRecord: 0.9ms) Started DELETE “/appointments/68” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"68"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 68], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 68]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 183], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$PMLoWfkmyg3.ropQPqLokuXNhs6S2K6RYTLkVnLHmb359rWv1wkFi"], ["created_at", "2019-11-22 00:04:37.376741"], ["updated_at", "2019-11-22 00:04:37.376741"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:37.392581"], ["last_sign_in_at", "2019-11-22 00:04:37.392581"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.393158"], ["id", 184]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 17ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 184], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:04:37.413734"], ["updated_at", "2019-11-22 00:04:37.413734"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 147], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 184], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 184], ["room_id", 147], ["created_at", "2019-11-22 00:04:37.419257"], ["updated_at", "2019-11-22 00:04:37.419257"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 184], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 184]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/69” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"69"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 69], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 69]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 2ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 184], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$2A6X6t7LCNKkZXUT6Y1nzeRoFsM3yHErB2nyqAGu62/LqFBpyGa3C"], ["created_at", "2019-11-22 00:04:37.451296"], ["updated_at", "2019-11-22 00:04:37.451296"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:37.464559"], ["last_sign_in_at", "2019-11-22 00:04:37.464559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.465139"], ["id", 185]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 185], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:37.482363"], ["updated_at", "2019-11-22 00:04:37.482363"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 148], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 185], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 185], ["room_id", 148], ["created_at", "2019-11-22 00:04:37.487128"], ["updated_at", "2019-11-22 00:04:37.487128"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 185], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 185]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$BjECN2xR7b/.5bdNkKOHW.89apBfDcA4YKPprAwsH64PB5BSSc73O"], ["created_at", "2019-11-22 00:04:37.508843"], ["updated_at", "2019-11-22 00:04:37.508843"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:37.522882"], ["last_sign_in_at", "2019-11-22 00:04:37.522882"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.523529"], ["id", 186]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 186], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:04:37.533808"], ["updated_at", "2019-11-22 00:04:37.533808"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 149], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 186], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 186], ["room_id", 149], ["created_at", "2019-11-22 00:04:37.539009"], ["updated_at", "2019-11-22 00:04:37.539009"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 186], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 186]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$YmlWPVUUTtG.ZTT1631/nuqDKt55yMhLFhLzu3co2demzCNp1UzMa"], ["created_at", "2019-11-22 00:04:37.562990"], ["updated_at", "2019-11-22 00:04:37.562990"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:37.576058"], ["last_sign_in_at", "2019-11-22 00:04:37.576058"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.577038"], ["id", 187]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 187], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:04:37.589543"], ["updated_at", "2019-11-22 00:04:37.589543"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:37.591455"], ["updated_at", "2019-11-22 00:04:37.591455"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 187], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 64ms (Views: 44.8ms | ActiveRecord: 0.8ms) Started GET “/appointments/150” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"150"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 150], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '150')
Rendered appointments/show.html.erb within layouts/application (10.5ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 187], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 32ms (Views: 12.9ms | ActiveRecord: 1.3ms) Started POST “/appointments.150” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 187], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 150], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 187], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 187], ["room_id", 150], ["created_at", "2019-11-22 00:04:37.721361"], ["updated_at", "2019-11-22 00:04:37.721361"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 187], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$GL2pGPtonRIYQYL6SyLdSOZ4kajKSIjflD9x7rUISc7eRIj5pKZc2"], ["created_at", "2019-11-22 00:04:37.743978"], ["updated_at", "2019-11-22 00:04:37.743978"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:37.758808"], ["last_sign_in_at", "2019-11-22 00:04:37.758808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.759399"], ["id", 188]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 188], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:04:37.772192"], ["updated_at", "2019-11-22 00:04:37.772192"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:37.774012"], ["updated_at", "2019-11-22 00:04:37.774012"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 188], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.9ms) Started GET “/appointments/152” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"152"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 152], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '152')
Rendered appointments/show.html.erb within layouts/application (1.5ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 188], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 1.0ms) Started POST “/appointments.152” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 188], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 188], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$AMutF6wWxVslVs7ZtpoDpePtokzhrf21GqqvZAVohsAtKkPzNW/3i"], ["created_at", "2019-11-22 00:04:37.827112"], ["updated_at", "2019-11-22 00:04:37.827112"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:37.839931"], ["last_sign_in_at", "2019-11-22 00:04:37.839931"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.840555"], ["id", 189]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 189], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:04:37.851644"], ["updated_at", "2019-11-22 00:04:37.851644"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 189], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 189], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/154” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"154"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 189], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 154], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 154]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 189], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$deCa5/MEGs9ASaExdYUS9eTcRsd32FrS/CvOLn9aZ3VKkq6wxWTxS"], ["created_at", "2019-11-22 00:04:37.895508"], ["updated_at", "2019-11-22 00:04:37.895508"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:04:37.897793"], ["updated_at", "2019-11-22 00:04:37.897793"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:37.925846"], ["last_sign_in_at", "2019-11-22 00:04:37.925846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:37.926391"], ["id", 190]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 190], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 190], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms) Started GET “/rooms/155/edit” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"155"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 190], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 155], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 29ms (Views: 9.8ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/155” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"155"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 190], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 155], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:04:37.993020"], ["id", 155]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/155 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/rooms/155” for 127.0.0.1 at 2019-11-21 21:04:37 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"155"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 190], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 155], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Itz0m4YGo2yeYIEYJzVrgOgR3Z4mffTS/39t/qcPCxSxZW4egRdai"], ["created_at", "2019-11-22 00:04:38.031058"], ["updated_at", "2019-11-22 00:04:38.031058"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:38.043535"], ["last_sign_in_at", "2019-11-22 00:04:38.043535"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:38.044434"], ["id", 191]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 191], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:04:38.056017"], ["updated_at", "2019-11-22 00:04:38.056017"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:38.057694"], ["updated_at", "2019-11-22 00:04:38.057694"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 191], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$.Fs8FPQLxtny2Dv91.c1LeAOFVDpXTZay/3TUdEQDFIUeaCYcTlrC"], ["created_at", "2019-11-22 00:04:38.085607"], ["updated_at", "2019-11-22 00:04:38.085607"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:38.099374"], ["last_sign_in_at", "2019-11-22 00:04:38.099374"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:38.100004"], ["id", 192]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 192], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:04:38.111965"], ["updated_at", "2019-11-22 00:04:38.111965"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:04:38.113561"], ["updated_at", "2019-11-22 00:04:38.113561"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 192], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$d938PZAuTkU9eUUelAvO1..hvd0ZToE9bVT0anykjEP0iOE91Miiq"], ["created_at", "2019-11-22 00:04:38.142078"], ["updated_at", "2019-11-22 00:04:38.142078"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:38.167982"], ["last_sign_in_at", "2019-11-22 00:04:38.167982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:38.168755"], ["id", 193]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 193], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.2ms)
Rendered users/registrations/new.html.erb within layouts/application (17.3ms)

Completed 200 OK in 107ms (Views: 106.6ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$S/yck8YyFvObNqSPdCWjuelPAm87YS.vMjcxhKrSw4uZsyEjBQBZW"], ["created_at", "2019-11-22 00:04:38.351193"], ["updated_at", "2019-11-22 00:04:38.351193"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:04:38.353116"], ["last_sign_in_at", "2019-11-22 00:04:38.353116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:04:38.353606"], ["id", 194]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 83ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 194], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$qxJh1cyyEAORW3r6iOP3g.NiFo8lUTD6I2pokVf7SLZUWARJj1/2G"], ["created_at", "2019-11-22 00:04:38.448374"], ["updated_at", "2019-11-22 00:04:38.448374"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:04:38.473762"], ["last_sign_in_at", "2019-11-22 00:04:38.473762"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:04:38.474303"], ["id", 195]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 195], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/users/195/edit” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"195"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 195], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.4ms) Started PUT “/users/195” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"195"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 195], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 195], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 195], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:04:38.534555"], ["id", 195]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 151ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:04:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 195], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (4.1ms)

Completed 200 OK in 320ms (Views: 301.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$FNn264gV1Acxdhp01tmwfeffzGptXEZ8nkH3guuOruXdydt83Pjlq"], ["created_at", "2019-11-22 00:13:37.083466"], ["updated_at", "2019-11-22 00:13:37.083466"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (45.8ms)
Rendered users/sessions/new.html.erb within layouts/application (63.1ms)

Completed 200 OK in 224ms (Views: 221.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:37.375771"], ["last_sign_in_at", "2019-11-22 00:13:37.375771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:37.376611"], ["id", 196]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 162ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 196], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 52ms (Views: 33.9ms | ActiveRecord: 0.5ms)

 (0.6ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$z6pUKIQAI91OKOo4WSMRIexk2WHzEW6sWKV7Zqb5BzC/SXK.Eu43G"], ["created_at", "2019-11-22 00:13:37.604138"], ["updated_at", "2019-11-22 00:13:37.604138"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  COMMIT
 (0.1ms)  BEGIN
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$cSNlsyECXP.8xECAbuKFfOn7AQiqNwj4HtiMW9LhSpWTFj9e.096e"], ["created_at", "2019-11-22 00:13:37.735188"], ["updated_at", "2019-11-22 00:13:37.735188"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:37.757021"], ["last_sign_in_at", "2019-11-22 00:13:37.757021"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:37.757828"], ["id", 198]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 198], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (2.0ms)

Completed 200 OK in 21ms (Views: 20.2ms | ActiveRecord: 0.6ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (1.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:37.804845"], ["updated_at", "2019-11-22 00:13:37.804845"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 160], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 198], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 198], ["room_id", 160], ["created_at", "2019-11-22 00:13:37.844591"], ["updated_at", "2019-11-22 00:13:37.844591"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 198], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 198]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 74ms (Views: 40.6ms | ActiveRecord: 1.0ms) Started DELETE “/appointments/73” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"73"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 73], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 73]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 198], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$j3.hxh.I579xEQ5/P1ONsOB2L2kOQ7Frv7RAkymfk1UGqfyg.SP6e"], ["created_at", "2019-11-22 00:13:37.959048"], ["updated_at", "2019-11-22 00:13:37.959048"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:37.985463"], ["last_sign_in_at", "2019-11-22 00:13:37.985463"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:37.986168"], ["id", 199]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 199], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:13:37.996438"], ["updated_at", "2019-11-22 00:13:37.996438"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 161], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 199], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 199], ["room_id", 161], ["created_at", "2019-11-22 00:13:38.001802"], ["updated_at", "2019-11-22 00:13:38.001802"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 199], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 199]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/74” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"74"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 74], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 74]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 199], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$BsBcLQkxrfdP8S8HZCxD7esWNT3jyFuTBaQ35yc9TwpebuLoY/d3q"], ["created_at", "2019-11-22 00:13:38.033057"], ["updated_at", "2019-11-22 00:13:38.033057"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:38.046895"], ["last_sign_in_at", "2019-11-22 00:13:38.046895"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.047486"], ["id", 200]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 200], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:38.064968"], ["updated_at", "2019-11-22 00:13:38.064968"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 162], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 200], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 200], ["room_id", 162], ["created_at", "2019-11-22 00:13:38.071344"], ["updated_at", "2019-11-22 00:13:38.071344"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 200], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 200]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$VI10ltIEWxoM7UpeWRtzSuVLD.rp5mcrgbeIAW5alLIQK/ogEgZR6"], ["created_at", "2019-11-22 00:13:38.093616"], ["updated_at", "2019-11-22 00:13:38.093616"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:38.107105"], ["last_sign_in_at", "2019-11-22 00:13:38.107105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.107838"], ["id", 201]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 201], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:13:38.117331"], ["updated_at", "2019-11-22 00:13:38.117331"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 163], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 201], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 201], ["room_id", 163], ["created_at", "2019-11-22 00:13:38.122646"], ["updated_at", "2019-11-22 00:13:38.122646"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 201], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 201]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8bZwI9kP4yD.6m9KImZtyeb4dllAgwH5mCkAWDOcqFZnhGOYvPZqm"], ["created_at", "2019-11-22 00:13:38.146814"], ["updated_at", "2019-11-22 00:13:38.146814"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:38.163449"], ["last_sign_in_at", "2019-11-22 00:13:38.163449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.164149"], ["id", 202]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 202], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:13:38.178739"], ["updated_at", "2019-11-22 00:13:38.178739"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:38.181481"], ["updated_at", "2019-11-22 00:13:38.181481"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 202], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 61ms (Views: 40.2ms | ActiveRecord: 0.9ms) Started GET “/appointments/164” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"164"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 164], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '164')
Rendered appointments/show.html.erb within layouts/application (10.6ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 202], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 32ms (Views: 13.0ms | ActiveRecord: 1.2ms) Started POST “/appointments.164” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 202], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 164], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 202], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 202], ["room_id", 164], ["created_at", "2019-11-22 00:13:38.317542"], ["updated_at", "2019-11-22 00:13:38.317542"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 202], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$5q4tcufZ0gQgo5e7HTTcueo845383TqZq6zzQlUoP58vK/LPMtmCW"], ["created_at", "2019-11-22 00:13:38.334584"], ["updated_at", "2019-11-22 00:13:38.334584"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:38.348947"], ["last_sign_in_at", "2019-11-22 00:13:38.348947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.349506"], ["id", 203]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 203], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:13:38.361702"], ["updated_at", "2019-11-22 00:13:38.361702"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:38.363473"], ["updated_at", "2019-11-22 00:13:38.363473"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 203], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms) Started GET “/appointments/166” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"166"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 166], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '166')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 203], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 1.0ms) Started POST “/appointments.166” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 203], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 203], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$TwbDlpzsPAKv17vvyG.Ize.qnU5OHTxZ/9xkx53fmRN14x0o7EYM6"], ["created_at", "2019-11-22 00:13:38.416822"], ["updated_at", "2019-11-22 00:13:38.416822"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:38.429743"], ["last_sign_in_at", "2019-11-22 00:13:38.429743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.430395"], ["id", 204]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 204], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:13:38.441853"], ["updated_at", "2019-11-22 00:13:38.441853"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 204], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 204], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/168” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"168"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 204], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 168], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 168]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 204], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$WQ31SQlzpB31BTjg52gQ.ugI7v4zadiOV..tP9Zo/5j2uzMTbCMlm"], ["created_at", "2019-11-22 00:13:38.482663"], ["updated_at", "2019-11-22 00:13:38.482663"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:13:38.484736"], ["updated_at", "2019-11-22 00:13:38.484736"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:38.510307"], ["last_sign_in_at", "2019-11-22 00:13:38.510307"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.510927"], ["id", 205]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 205], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 205], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started GET “/rooms/169/edit” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"169"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 205], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 169], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (9.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 29ms (Views: 11.5ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/169” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"169"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 205], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 169], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:13:38.578848"], ["id", 169]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/169 Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/rooms/169” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"169"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 205], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 169], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Gp4jBADa6I31xGYqwvvkEeW381pcjFUANAzouBHPTNGihKyw3TEPa"], ["created_at", "2019-11-22 00:13:38.617312"], ["updated_at", "2019-11-22 00:13:38.617312"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:38.630799"], ["last_sign_in_at", "2019-11-22 00:13:38.630799"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.631352"], ["id", 206]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 206], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:13:38.642526"], ["updated_at", "2019-11-22 00:13:38.642526"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:38.644205"], ["updated_at", "2019-11-22 00:13:38.644205"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 206], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KoMdXcIQz5W974BLXhu8VeKcmnZoGlvo28ZCTDOvpYXt13.TbebdO"], ["created_at", "2019-11-22 00:13:38.672439"], ["updated_at", "2019-11-22 00:13:38.672439"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:38.686440"], ["last_sign_in_at", "2019-11-22 00:13:38.686440"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.687077"], ["id", 207]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 207], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:13:38.699560"], ["updated_at", "2019-11-22 00:13:38.699560"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:13:38.701372"], ["updated_at", "2019-11-22 00:13:38.701372"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 207], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$rt0Fqp6eFQYT2u0MJ7l7cebtTWDI3HXQ471BdlaRMoCw/wIZb.2MC"], ["created_at", "2019-11-22 00:13:38.729367"], ["updated_at", "2019-11-22 00:13:38.729367"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:38.754813"], ["last_sign_in_at", "2019-11-22 00:13:38.754813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:38.755413"], ["id", 208]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 208], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.2ms)
Rendered users/registrations/new.html.erb within layouts/application (17.1ms)

Completed 200 OK in 106ms (Views: 105.9ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:13:38 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$KoQ7pyrIqE2ctgkWTwrsaewEfv5vHgtb5mwwekROEXQCnuWgXWP/m"], ["created_at", "2019-11-22 00:13:38.937019"], ["updated_at", "2019-11-22 00:13:38.937019"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:13:38.939062"], ["last_sign_in_at", "2019-11-22 00:13:38.939062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:13:38.939750"], ["id", 209]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 84ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 209], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$/qg6dyNcNGRBOvIuzbm0d.LkhXVTyJCRzytjObWesrTEpWrW.zgWi"], ["created_at", "2019-11-22 00:13:39.034151"], ["updated_at", "2019-11-22 00:13:39.034151"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:13:39.061911"], ["last_sign_in_at", "2019-11-22 00:13:39.061911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:13:39.062625"], ["id", 210]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 210], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/users/210/edit” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"210"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 210], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.5ms) Started PUT “/users/210” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"210"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 210], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 210], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 210], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:13:39.123879"], ["id", 210]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 154ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:13:39 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 210], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NBR60YlY4ahovMDbCyeoreF3zprNL7o7RRRPASt1swDMmW0WqfHES"], ["created_at", "2019-11-22 00:30:08.587629"], ["updated_at", "2019-11-22 00:30:08.587629"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:08.590941"], ["updated_at", "2019-11-22 00:30:08.590941"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 21:30:08 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:08.615592"], ["last_sign_in_at", "2019-11-22 00:30:08.615592"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:08.616383"], ["id", 211]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"174"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 174], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 211], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 211], ["room_id", 174], ["created_at", "2019-11-22 00:30:08.660517"], ["updated_at", "2019-11-22 00:30:08.660517"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 2.1ms)

Appointment Load (0.7ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 174], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$J7nKV.r72BX6FliNEfKUIeHa75dJfzxiWtRtM/7caH0rZyBrJ05Ge"], ["created_at", "2019-11-22 00:30:08.684963"], ["updated_at", "2019-11-22 00:30:08.684963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:08.687256"], ["updated_at", "2019-11-22 00:30:08.687256"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 21:30:08 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:08.689974"], ["last_sign_in_at", "2019-11-22 00:30:08.689974"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:08.690503"], ["id", 212]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"175"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 175], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 212], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 212], ["room_id", 175], ["created_at", "2019-11-22 00:30:08.695800"], ["updated_at", "2019-11-22 00:30:08.695800"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3RoN.9K8boBvqAuOFJzwG.Atq3EPKFWyT.UUpSk32brk.pPhp5nsq"], ["created_at", "2019-11-22 00:30:08.704904"], ["updated_at", "2019-11-22 00:30:08.704904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:08.707240"], ["updated_at", "2019-11-22 00:30:08.707240"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 21:30:08 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:08.709978"], ["last_sign_in_at", "2019-11-22 00:30:08.709978"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:08.710622"], ["id", 213]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"176"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 176], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3CcULtv9nwo6kKcg87ivze.bQO/f027y9UrJLSyTvtwKQgimnEHe2"], ["created_at", "2019-11-22 00:30:08.720615"], ["updated_at", "2019-11-22 00:30:08.720615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:08.722819"], ["updated_at", "2019-11-22 00:30:08.722819"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 21:30:08 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:08.725052"], ["last_sign_in_at", "2019-11-22 00:30:08.725052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:08.725576"], ["id", 214]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"177"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0wii/X3MHH21/K9tz7C.dulcwNoWMwYLU9QKovei0nd58mpVSfu8C"], ["created_at", "2019-11-22 00:30:08.736160"], ["updated_at", "2019-11-22 00:30:08.736160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:08.738401"], ["updated_at", "2019-11-22 00:30:08.738401"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 178], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 215], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 215], ["room_id", 178], ["created_at", "2019-11-22 00:30:08.742740"], ["updated_at", "2019-11-22 00:30:08.742740"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/178” for 127.0.0.1 at 2019-11-21 21:30:08 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:08.745738"], ["last_sign_in_at", "2019-11-22 00:30:08.745738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:08.746319"], ["id", 215]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"178"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 178], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '178')
Rendered appointments/show.html.erb within layouts/application (20.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 358ms (Views: 339.1ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iJvbMHuikTmh/FFlvcLeFeJxjhHTCIJX07F5QCBpCJQ6m5259NTFm"], ["created_at", "2019-11-22 00:30:09.115199"], ["updated_at", "2019-11-22 00:30:09.115199"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.117314"], ["updated_at", "2019-11-22 00:30:09.117314"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 179], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 216], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 216], ["room_id", 179], ["created_at", "2019-11-22 00:30:09.121328"], ["updated_at", "2019-11-22 00:30:09.121328"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 179], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 216], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 216], ["room_id", 179], ["created_at", "2019-11-22 00:30:09.125140"], ["updated_at", "2019-11-22 00:30:09.125140"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.127372"], ["last_sign_in_at", "2019-11-22 00:30:09.127372"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.127919"], ["id", 216]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 216]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 36ms (Views: 4.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0N6KQECWiG1uCMYJFhwjUuCDvVA7U9AaRH9lknqfMV3qGwVxYSXai"], ["created_at", "2019-11-22 00:30:09.174203"], ["updated_at", "2019-11-22 00:30:09.174203"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.176845"], ["updated_at", "2019-11-22 00:30:09.176845"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 180], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 217], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 217], ["room_id", 180], ["created_at", "2019-11-22 00:30:09.182391"], ["updated_at", "2019-11-22 00:30:09.182391"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 180], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 217], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 217], ["room_id", 180], ["created_at", "2019-11-22 00:30:09.186641"], ["updated_at", "2019-11-22 00:30:09.186641"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.189379"], ["last_sign_in_at", "2019-11-22 00:30:09.189379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.189937"], ["id", 217]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 217]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MUPGxjoJWhoQmz6nNw9aOuBeMrvf1hxiitQ0sk20AxNqBFnouktni"], ["created_at", "2019-11-22 00:30:09.205377"], ["updated_at", "2019-11-22 00:30:09.205377"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.207523"], ["updated_at", "2019-11-22 00:30:09.207523"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 181], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 218], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 218], ["room_id", 181], ["created_at", "2019-11-22 00:30:09.213294"], ["updated_at", "2019-11-22 00:30:09.213294"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/85” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.215365"], ["last_sign_in_at", "2019-11-22 00:30:09.215365"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.215850"], ["id", 218]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"85"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 85], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 85]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rBfi2rcPe64Q4pC6KlWsRucJVL17j4z0U89tBZv6y9OJAbz.Kb75W"], ["created_at", "2019-11-22 00:30:09.229283"], ["updated_at", "2019-11-22 00:30:09.229283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.231736"], ["last_sign_in_at", "2019-11-22 00:30:09.231736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.232309"], ["id", 219]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 35ms (Views: 18.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$38paix0hHDIdMYCAIT1aGeIIg7vKW27ZCVitns461eRixfW3d5jwG"], ["created_at", "2019-11-22 00:30:09.276483"], ["updated_at", "2019-11-22 00:30:09.276483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.279018"], ["updated_at", "2019-11-22 00:30:09.279018"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 182], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 220], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 220], ["room_id", 182], ["created_at", "2019-11-22 00:30:09.283550"], ["updated_at", "2019-11-22 00:30:09.283550"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 182], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 220], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 220], ["room_id", 182], ["created_at", "2019-11-22 00:30:09.287141"], ["updated_at", "2019-11-22 00:30:09.287141"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.289203"], ["last_sign_in_at", "2019-11-22 00:30:09.289203"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.289746"], ["id", 220]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 182], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 220], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 220], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TUtVudJMEM7FsWvqahXnVeVsBR.AsID93o4IdSCnxHrNajU5qAdIa"], ["created_at", "2019-11-22 00:30:09.303201"], ["updated_at", "2019-11-22 00:30:09.303201"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.305753"], ["updated_at", "2019-11-22 00:30:09.305753"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 183], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 221], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 221], ["room_id", 183], ["created_at", "2019-11-22 00:30:09.310277"], ["updated_at", "2019-11-22 00:30:09.310277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 183], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 221], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 221], ["room_id", 183], ["created_at", "2019-11-22 00:30:09.327999"], ["updated_at", "2019-11-22 00:30:09.327999"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.330544"], ["last_sign_in_at", "2019-11-22 00:30:09.330544"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.331136"], ["id", 221]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 183], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 221], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 221], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i/eEuN2Ii88iDQlBRaWt5uC9Y8uU6k77fm51ciOEZe82ZtJqXmj9G"], ["created_at", "2019-11-22 00:30:09.346959"], ["updated_at", "2019-11-22 00:30:09.346959"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.349035"], ["updated_at", "2019-11-22 00:30:09.349035"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 184], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 222], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 222], ["room_id", 184], ["created_at", "2019-11-22 00:30:09.353047"], ["updated_at", "2019-11-22 00:30:09.353047"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 184], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 222], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 222], ["room_id", 184], ["created_at", "2019-11-22 00:30:09.356775"], ["updated_at", "2019-11-22 00:30:09.356775"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.358913"], ["last_sign_in_at", "2019-11-22 00:30:09.358913"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.359443"], ["id", 222]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YVJDpgOzCURGP2S62IHAZOdR4EeeFqFhyQAMNkyPzOJfr0dyXYsF6"], ["created_at", "2019-11-22 00:30:09.370185"], ["updated_at", "2019-11-22 00:30:09.370185"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.372276"], ["updated_at", "2019-11-22 00:30:09.372276"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 185], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 223], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 223], ["room_id", 185], ["created_at", "2019-11-22 00:30:09.376425"], ["updated_at", "2019-11-22 00:30:09.376425"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 185], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 223], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 223], ["room_id", 185], ["created_at", "2019-11-22 00:30:09.381819"], ["updated_at", "2019-11-22 00:30:09.381819"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.384029"], ["last_sign_in_at", "2019-11-22 00:30:09.384029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.384543"], ["id", 223]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5e596Ydl/5q76rJYWnsXluoKN1v21X7EndZSp010oitNemzvmn.n."], ["created_at", "2019-11-22 00:30:09.397630"], ["updated_at", "2019-11-22 00:30:09.397630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.399773"], ["last_sign_in_at", "2019-11-22 00:30:09.399773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.400441"], ["id", 224]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 69ms (Views: 47.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F6jFUPpDDWb5Kmn6rAcHyeJaQCxV6aPnEwfBGtMlCHiaHFXw1Oism"], ["created_at", "2019-11-22 00:30:09.481385"], ["updated_at", "2019-11-22 00:30:09.481385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.483872"], ["last_sign_in_at", "2019-11-22 00:30:09.483872"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.484368"], ["id", 225]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y/5vs7CK61ZZAQqdlicvi.FORcaFvm44ow4QdT2jeXT34R5qpCWlK"], ["created_at", "2019-11-22 00:30:09.496331"], ["updated_at", "2019-11-22 00:30:09.496331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.498737"], ["last_sign_in_at", "2019-11-22 00:30:09.498737"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.499251"], ["id", 226]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3I51z20lhwX3DcAHLaQSxueMehjmmi1XC7QAJ18pBDaakJ2eJiouS"], ["created_at", "2019-11-22 00:30:09.526840"], ["updated_at", "2019-11-22 00:30:09.526840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.529525"], ["last_sign_in_at", "2019-11-22 00:30:09.529525"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.530113"], ["id", 227]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/Qq22GLMJKx20PEf54YeAeotutNO13Dq0x1YS3aq92b6xpOXM5t/W"], ["created_at", "2019-11-22 00:30:09.550125"], ["updated_at", "2019-11-22 00:30:09.550125"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.553080"], ["updated_at", "2019-11-22 00:30:09.553080"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/186” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.555524"], ["last_sign_in_at", "2019-11-22 00:30:09.555524"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.556001"], ["id", 228]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"186"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 186], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 18ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d7gwZZlG3cYIMw96x7YBB.cDX2qRFcl7Rzazo8esW.KnvHQWPMqUm"], ["created_at", "2019-11-22 00:30:09.582440"], ["updated_at", "2019-11-22 00:30:09.582440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.584739"], ["updated_at", "2019-11-22 00:30:09.584739"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/187” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.586951"], ["last_sign_in_at", "2019-11-22 00:30:09.586951"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.587564"], ["id", 229]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"187"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 187], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.597320"], ["updated_at", "2019-11-22 00:30:09.597320"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/188” for 127.0.0.1 at 2019-11-21 21:30:09 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"188"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6NQhDl9TDj6Ml0REt5NFueibujdP.q2InikhgbS/rT5iE78g2oHnu"], ["created_at", "2019-11-22 00:30:09.608551"], ["updated_at", "2019-11-22 00:30:09.608551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.610755"], ["updated_at", "2019-11-22 00:30:09.610755"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/189/edit” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.613086"], ["last_sign_in_at", "2019-11-22 00:30:09.613086"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.613641"], ["id", 230]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"189"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 189], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 22ms (Views: 5.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eVtIm/6mYyZvFAxMSyrap.PbO0CMgaHNDKXfkwtwvktteXcB1Y7bS"], ["created_at", "2019-11-22 00:30:09.646236"], ["updated_at", "2019-11-22 00:30:09.646236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.650017"], ["updated_at", "2019-11-22 00:30:09.650017"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/190/edit” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.653294"], ["last_sign_in_at", "2019-11-22 00:30:09.653294"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.653932"], ["id", 231]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"190"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 190], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.668075"], ["updated_at", "2019-11-22 00:30:09.668075"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/191” for 127.0.0.1 at 2019-11-21 21:30:09 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"191"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a1ZTkU56CYtOS/EQn.wMaeH/9In2jcKlze/vHeezlH5z7x8P3j/AS"], ["created_at", "2019-11-22 00:30:09.683416"], ["updated_at", "2019-11-22 00:30:09.683416"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.690938"], ["last_sign_in_at", "2019-11-22 00:30:09.690938"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.691563"], ["id", 232]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.697361"], ["updated_at", "2019-11-22 00:30:09.697361"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OR8X2YTzA02GFJhVCXsPNerHhVNbksYvLRyPkJRbI2YuLbtAN35r2"], ["created_at", "2019-11-22 00:30:09.707311"], ["updated_at", "2019-11-22 00:30:09.707311"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.710261"], ["last_sign_in_at", "2019-11-22 00:30:09.710261"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.711024"], ["id", 233]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.715792"], ["updated_at", "2019-11-22 00:30:09.715792"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3BgLJB9TN1uXRy1dvUueP./ttHFGIS61HjhBCMR14GAI6wxzBeA.q"], ["created_at", "2019-11-22 00:30:09.723886"], ["updated_at", "2019-11-22 00:30:09.723886"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.726591"], ["last_sign_in_at", "2019-11-22 00:30:09.726591"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.727017"], ["id", 234]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$69s.CEHgzdoXFDe7ztg/le1r.NQBb4OHDa0jw8C1kjPhuYuiXV/ey"], ["created_at", "2019-11-22 00:30:09.738531"], ["updated_at", "2019-11-22 00:30:09.738531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.741379"], ["last_sign_in_at", "2019-11-22 00:30:09.741379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.741793"], ["id", 235]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4wt43RE0gqFVBToNB0RMoO9gF3pkAKdNk708K6Jhqff/lEtAs8BR2"], ["created_at", "2019-11-22 00:30:09.753418"], ["updated_at", "2019-11-22 00:30:09.753418"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.756857"], ["last_sign_in_at", "2019-11-22 00:30:09.756857"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.757289"], ["id", 236]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6mLMN/cZD5hd0eA1C3dEVOZeiJbVLUn.8yGpjhSl2FAXZR6fveA3m"], ["created_at", "2019-11-22 00:30:09.768998"], ["updated_at", "2019-11-22 00:30:09.768998"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.771334"], ["updated_at", "2019-11-22 00:30:09.771334"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/194” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.773878"], ["last_sign_in_at", "2019-11-22 00:30:09.773878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.774619"], ["id", 237]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"194"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 194], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-22 00:30:09.778484"], ["id", 194]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/194 Completed 302 Found in 4ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ecKLGTGtvc5DrHSpimYNjOT5ecAbsTJzOe2PT4jARrSyzqbYZN5/G"], ["created_at", "2019-11-22 00:30:09.787301"], ["updated_at", "2019-11-22 00:30:09.787301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.789542"], ["updated_at", "2019-11-22 00:30:09.789542"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/195” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.791937"], ["last_sign_in_at", "2019-11-22 00:30:09.791937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.792503"], ["id", 238]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"195"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 195], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-22 00:30:09.797168"], ["id", 195]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/195 Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gWJ3G9Fzz/9SPzr46m/fF.3HgTUm4RCDa81LQZDFjzVzVDPemQ5A."], ["created_at", "2019-11-22 00:30:09.806446"], ["updated_at", "2019-11-22 00:30:09.806446"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.808835"], ["updated_at", "2019-11-22 00:30:09.808835"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/196” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.812419"], ["last_sign_in_at", "2019-11-22 00:30:09.812419"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.813049"], ["id", 239]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"196"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 196], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xtN490OlmFylcxA22/Ol..ZizKJI74mgLOX7oV.6x7zvHh43Z/r96"], ["created_at", "2019-11-22 00:30:09.829615"], ["updated_at", "2019-11-22 00:30:09.829615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.831959"], ["updated_at", "2019-11-22 00:30:09.831959"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/197” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.834676"], ["last_sign_in_at", "2019-11-22 00:30:09.834676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.835207"], ["id", 240]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"197"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 197], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BBj1EvigBI2/l/wsud/gI.edraZVeWNcQFfsjsWpSrjLP6QRVNlry"], ["created_at", "2019-11-22 00:30:09.851495"], ["updated_at", "2019-11-22 00:30:09.851495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.854633"], ["last_sign_in_at", "2019-11-22 00:30:09.854633"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.855182"], ["id", 241]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lDKw5uTf4GlkXRb5UXvOOujdtLoCq/ge/5mhR8UrAzlnmhoQHq60O"], ["created_at", "2019-11-22 00:30:09.867718"], ["updated_at", "2019-11-22 00:30:09.867718"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.870208"], ["updated_at", "2019-11-22 00:30:09.870208"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/198” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.872354"], ["last_sign_in_at", "2019-11-22 00:30:09.872354"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.872853"], ["id", 242]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"198"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 198], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 198]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$du5pGDBkmGO00BJobU8EVOD84qMJ1E9/QEr.ztoNnU/X5YOQXJ.X2"], ["created_at", "2019-11-22 00:30:09.895948"], ["updated_at", "2019-11-22 00:30:09.895948"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.899329"], ["updated_at", "2019-11-22 00:30:09.899329"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/199” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.901316"], ["last_sign_in_at", "2019-11-22 00:30:09.901316"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.901876"], ["id", 243]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"199"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 199], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 199]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9jtYypFFClQ0NqLeJRJid.eFywSP06IiwpH0/Nvx5jn2jF.51Bqsq"], ["created_at", "2019-11-22 00:30:09.913516"], ["updated_at", "2019-11-22 00:30:09.913516"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.915727"], ["updated_at", "2019-11-22 00:30:09.915727"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/200” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.917911"], ["last_sign_in_at", "2019-11-22 00:30:09.917911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.918553"], ["id", 244]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"200"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L1n2fQq91AOZSgJq3G69l.QbRyf.TbL1tUQxE.2rdAaecTAInH.8m"], ["created_at", "2019-11-22 00:30:09.927854"], ["updated_at", "2019-11-22 00:30:09.927854"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 00:30:09.930611"], ["updated_at", "2019-11-22 00:30:09.930611"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/201” for 127.0.0.1 at 2019-11-21 21:30:09 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:30:09.932607"], ["last_sign_in_at", "2019-11-22 00:30:09.932607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:30:09.933137"], ["id", 245]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"201"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:31:58 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (4.2ms)

Completed 200 OK in 320ms (Views: 301.2ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$zoCj1xId7skChDuuhsaQHOLY/07s7lhynJqkdOq4BExkL/wfgQWIe"], ["created_at", "2019-11-22 00:31:59.285756"], ["updated_at", "2019-11-22 00:31:59.285756"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (44.2ms)
Rendered users/sessions/new.html.erb within layouts/application (60.4ms)

Completed 200 OK in 215ms (Views: 212.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:31:59.565975"], ["last_sign_in_at", "2019-11-22 00:31:59.565975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:31:59.566800"], ["id", 246]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 160ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 246], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 53ms (Views: 34.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$UVrht6nkgCTTtWYDThPOYe4yZvEHISgyLh7QsnU/aZJ7W0sazN9dW"], ["created_at", "2019-11-22 00:31:59.793813"], ["updated_at", "2019-11-22 00:31:59.793813"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$2DMpGUkSPvTDSXD8zi87teM2y12DFYGDzYYu1wC8hzp.rDKvVIqkC"], ["created_at", "2019-11-22 00:31:59.929256"], ["updated_at", "2019-11-22 00:31:59.929256"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:31:59.947174"], ["last_sign_in_at", "2019-11-22 00:31:59.947174"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:31:59.947966"], ["id", 248]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:31:59 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 248], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 20ms (Views: 19.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:31:59.989894"], ["updated_at", "2019-11-22 00:31:59.989894"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 202], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 248], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 248], ["room_id", 202], ["created_at", "2019-11-22 00:32:00.029623"], ["updated_at", "2019-11-22 00:32:00.029623"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 248], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 248]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 75ms (Views: 41.7ms | ActiveRecord: 1.2ms) Started DELETE “/appointments/94” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"94"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 94], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 94]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 248], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$lz6MyaXABgta2o/GOkHhk.KkAJqtNoa/BZmNblILpp4FG7/63GbaS"], ["created_at", "2019-11-22 00:32:00.144392"], ["updated_at", "2019-11-22 00:32:00.144392"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:00.172922"], ["last_sign_in_at", "2019-11-22 00:32:00.172922"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.173557"], ["id", 249]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 249], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:32:00.183601"], ["updated_at", "2019-11-22 00:32:00.183601"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 203], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 249], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 249], ["room_id", 203], ["created_at", "2019-11-22 00:32:00.189146"], ["updated_at", "2019-11-22 00:32:00.189146"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 249], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 249]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/95” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"95"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 95], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 95]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 249], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$R8vP8L5/dEuq4WZGtrU6x.aFm5z4ERjPz7/fz2.ipfV5UniHa/w/y"], ["created_at", "2019-11-22 00:32:00.224151"], ["updated_at", "2019-11-22 00:32:00.224151"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:00.237253"], ["last_sign_in_at", "2019-11-22 00:32:00.237253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.237833"], ["id", 250]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 250], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:32:00.255407"], ["updated_at", "2019-11-22 00:32:00.255407"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 204], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 250], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 250], ["room_id", 204], ["created_at", "2019-11-22 00:32:00.261835"], ["updated_at", "2019-11-22 00:32:00.261835"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 250], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 250]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$RJ2/AjVe1gSJaQGqo/KuqOj8P/jACc/cF/NVi.oMPhPCc/hUi9TVu"], ["created_at", "2019-11-22 00:32:00.283410"], ["updated_at", "2019-11-22 00:32:00.283410"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:00.296597"], ["last_sign_in_at", "2019-11-22 00:32:00.296597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.297170"], ["id", 251]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 251], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:32:00.306857"], ["updated_at", "2019-11-22 00:32:00.306857"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 205], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 251], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 251], ["room_id", 205], ["created_at", "2019-11-22 00:32:00.312454"], ["updated_at", "2019-11-22 00:32:00.312454"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 251], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 251]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ZWtYHycNEH8W4K/lMr9ZY.C0SR4fRvVuvo2Wr7Op7yXNaKguUnmEm"], ["created_at", "2019-11-22 00:32:00.336224"], ["updated_at", "2019-11-22 00:32:00.336224"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:00.351277"], ["last_sign_in_at", "2019-11-22 00:32:00.351277"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.352094"], ["id", 252]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 252], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:32:00.366418"], ["updated_at", "2019-11-22 00:32:00.366418"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:32:00.368664"], ["updated_at", "2019-11-22 00:32:00.368664"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 252], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 62ms (Views: 41.8ms | ActiveRecord: 0.9ms) Started GET “/appointments/206” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"206"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 206], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '206')
Rendered appointments/show.html.erb within layouts/application (10.5ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 252], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 33ms (Views: 13.5ms | ActiveRecord: 1.4ms) Started POST “/appointments.206” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 252], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 206], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 252], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 252], ["room_id", 206], ["created_at", "2019-11-22 00:32:00.504949"], ["updated_at", "2019-11-22 00:32:00.504949"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 252], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$q7IapeOB4hTG0ZsA9ruPguQd6FTXycN3MAaLXMfdm7yEnlXFxCOZ."], ["created_at", "2019-11-22 00:32:00.524645"], ["updated_at", "2019-11-22 00:32:00.524645"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:00.538135"], ["last_sign_in_at", "2019-11-22 00:32:00.538135"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.538683"], ["id", 253]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 253], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:32:00.550158"], ["updated_at", "2019-11-22 00:32:00.550158"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:32:00.551887"], ["updated_at", "2019-11-22 00:32:00.551887"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 253], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/208” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"208"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 208], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '208')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 253], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 1.0ms) Started POST “/appointments.208” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 253], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 253], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$PxY6F2oiCKL3eC3FO6AF3O5uibqvRUBEOLPiy1N7I5CctcIZTc8Jq"], ["created_at", "2019-11-22 00:32:00.603797"], ["updated_at", "2019-11-22 00:32:00.603797"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:00.617449"], ["last_sign_in_at", "2019-11-22 00:32:00.617449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.618042"], ["id", 254]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 254], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:32:00.628441"], ["updated_at", "2019-11-22 00:32:00.628441"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 254], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 254], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/210” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"210"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 254], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 210], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 210]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 254], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$iJkM3VMJBtu9FHEX5CgFo.rxvad.4p8MuDLktW5JxH.hOHn.4fxQW"], ["created_at", "2019-11-22 00:32:00.670061"], ["updated_at", "2019-11-22 00:32:00.670061"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:32:00.672348"], ["updated_at", "2019-11-22 00:32:00.672348"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:00.697515"], ["last_sign_in_at", "2019-11-22 00:32:00.697515"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.698458"], ["id", 255]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 255], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 255], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started GET “/rooms/211/edit” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"211"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 255], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 211], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 28ms (Views: 10.0ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/211” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"211"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 255], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 211], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:32:00.768235"], ["id", 211]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/211 Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/rooms/211” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"211"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 255], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 211], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$R3dIeGFSaROqhMn4xDgA2uvVCjCDAnwrzl2EhGf.lMJEABp.k6a.a"], ["created_at", "2019-11-22 00:32:00.808775"], ["updated_at", "2019-11-22 00:32:00.808775"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:00.822944"], ["last_sign_in_at", "2019-11-22 00:32:00.822944"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.823583"], ["id", 256]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 256], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:32:00.835416"], ["updated_at", "2019-11-22 00:32:00.835416"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:32:00.837240"], ["updated_at", "2019-11-22 00:32:00.837240"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 256], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$diNE.oYMAeJVqTQ1qAk5JeAgsNGGOMytQH0dadEEozyHapWq2SvJS"], ["created_at", "2019-11-22 00:32:00.863571"], ["updated_at", "2019-11-22 00:32:00.863571"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:00.876697"], ["last_sign_in_at", "2019-11-22 00:32:00.876697"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.877265"], ["id", 257]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 257], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:32:00.889534"], ["updated_at", "2019-11-22 00:32:00.889534"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:32:00.891414"], ["updated_at", "2019-11-22 00:32:00.891414"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 257], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$q/cXA9qSHVFKFjJPyiK7M.bJKx7zesgCBKlpV38gxZiXDA8aPKY.a"], ["created_at", "2019-11-22 00:32:00.922595"], ["updated_at", "2019-11-22 00:32:00.922595"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:00.949652"], ["last_sign_in_at", "2019-11-22 00:32:00.949652"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:00.950265"], ["id", 258]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 258], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:32:00 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.2ms)
Rendered users/registrations/new.html.erb within layouts/application (17.3ms)

Completed 200 OK in 110ms (Views: 109.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$q2tUFHqNaEJTQXljXa/s7Oz/Sl9vPIceiWQAmy23B4CFrPWxW6TH6"], ["created_at", "2019-11-22 00:32:01.133574"], ["updated_at", "2019-11-22 00:32:01.133574"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:32:01.135639"], ["last_sign_in_at", "2019-11-22 00:32:01.135639"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:32:01.136085"], ["id", 259]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 88ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 259], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$.CEFsukZq3ky9.h1RO.kcuCGs.h9..ejtXnZYOAt5Krk/d4.CwpEu"], ["created_at", "2019-11-22 00:32:01.236756"], ["updated_at", "2019-11-22 00:32:01.236756"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:32:01.262976"], ["last_sign_in_at", "2019-11-22 00:32:01.262976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:32:01.263854"], ["id", 260]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 260], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/users/260/edit” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"260"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 260], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 24ms (Views: 22.4ms | ActiveRecord: 0.4ms) Started PUT “/users/260” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"260"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 260], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 260], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 260], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:32:01.326400"], ["id", 260]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 152ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:32:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 260], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (4.4ms)

Completed 200 OK in 317ms (Views: 298.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$OJmk/UTOTVue8ZMuG1B7lu3WUyL0vDlee17j9YhN/4qoLPwwVzUsO"], ["created_at", "2019-11-22 00:36:49.161242"], ["updated_at", "2019-11-22 00:36:49.161242"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (57.3ms)
Rendered users/sessions/new.html.erb within layouts/application (73.6ms)

Completed 200 OK in 220ms (Views: 217.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:49.446598"], ["last_sign_in_at", "2019-11-22 00:36:49.446598"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:49.447381"], ["id", 261]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 164ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 261], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 53ms (Views: 34.6ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$S1KWVSWNRIcGDa/TuJq7Re7KFXeZEbBhkhcIvDj38ckGlEFWfy.6e"], ["created_at", "2019-11-22 00:36:49.677284"], ["updated_at", "2019-11-22 00:36:49.677284"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$6d0E8mwjcTavx36FF7xibeDAqOAbdfdg/WZFaTo6niw6CENl04u2."], ["created_at", "2019-11-22 00:36:49.782316"], ["updated_at", "2019-11-22 00:36:49.782316"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.7ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:49.799828"], ["last_sign_in_at", "2019-11-22 00:36:49.799828"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:49.800424"], ["id", 263]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 263], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.7ms)

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:49.851025"], ["updated_at", "2019-11-22 00:36:49.851025"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 216], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 263], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 263], ["room_id", 216], ["created_at", "2019-11-22 00:36:49.912695"], ["updated_at", "2019-11-22 00:36:49.912695"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:36:49 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 263], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 263]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 74ms (Views: 40.8ms | ActiveRecord: 1.0ms) Started DELETE “/appointments/99” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"99"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 99], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 99]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 263], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.7ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$CtGyxZSpAQo7qStUVLxPt.aMKOkQDoyxP9LuJhNwY5UdIiK8938R."], ["created_at", "2019-11-22 00:36:50.025275"], ["updated_at", "2019-11-22 00:36:50.025275"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:50.049759"], ["last_sign_in_at", "2019-11-22 00:36:50.049759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.050297"], ["id", 264]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 264], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:36:50.060218"], ["updated_at", "2019-11-22 00:36:50.060218"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 217], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 264], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 264], ["room_id", 217], ["created_at", "2019-11-22 00:36:50.065180"], ["updated_at", "2019-11-22 00:36:50.065180"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 264], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 264]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms) Started DELETE “/appointments/100” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"100"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 100], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 100]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 264], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$.wHSEOs3rVYks77/F09yF.dVArgIRxjsl4zHoI1yD.iF9VaH.avzm"], ["created_at", "2019-11-22 00:36:50.098522"], ["updated_at", "2019-11-22 00:36:50.098522"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:50.113039"], ["last_sign_in_at", "2019-11-22 00:36:50.113039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.113697"], ["id", 265]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 265], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:50.131084"], ["updated_at", "2019-11-22 00:36:50.131084"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 218], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 265], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 265], ["room_id", 218], ["created_at", "2019-11-22 00:36:50.138718"], ["updated_at", "2019-11-22 00:36:50.138718"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 265], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 265]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$il8X0cYWPrJFH1sZUyZXnejQ0WRhmR2urZx8AUiDlBWdCa/OGTbMa"], ["created_at", "2019-11-22 00:36:50.160223"], ["updated_at", "2019-11-22 00:36:50.160223"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:50.174752"], ["last_sign_in_at", "2019-11-22 00:36:50.174752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.175368"], ["id", 266]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 266], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:36:50.184719"], ["updated_at", "2019-11-22 00:36:50.184719"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.5ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 219], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 266], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 266], ["room_id", 219], ["created_at", "2019-11-22 00:36:50.191027"], ["updated_at", "2019-11-22 00:36:50.191027"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 266], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 266]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$kA0qX7d8cCnkYf89qo83O.uhl4COQqmecRq2Xt9VPQ3eDkdmOflwW"], ["created_at", "2019-11-22 00:36:50.214358"], ["updated_at", "2019-11-22 00:36:50.214358"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:50.229985"], ["last_sign_in_at", "2019-11-22 00:36:50.229985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.230698"], ["id", 267]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 267], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:36:50.243338"], ["updated_at", "2019-11-22 00:36:50.243338"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:50.245544"], ["updated_at", "2019-11-22 00:36:50.245544"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 267], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 61ms (Views: 42.5ms | ActiveRecord: 0.8ms) Started GET “/appointments/220” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"220"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 220], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '220')
Rendered appointments/show.html.erb within layouts/application (10.9ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 267], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 37ms (Views: 17.7ms | ActiveRecord: 1.1ms) Started POST “/appointments.220” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 267], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 220], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 267], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 267], ["room_id", 220], ["created_at", "2019-11-22 00:36:50.377262"], ["updated_at", "2019-11-22 00:36:50.377262"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 267], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$r.0jZlbO0bz8lsGPDpLxWODicn1FXjj8RpaQ1CWKBOJlJEGR6XYNu"], ["created_at", "2019-11-22 00:36:50.394284"], ["updated_at", "2019-11-22 00:36:50.394284"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:50.409709"], ["last_sign_in_at", "2019-11-22 00:36:50.409709"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.410349"], ["id", 268]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 268], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:36:50.422081"], ["updated_at", "2019-11-22 00:36:50.422081"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:50.423721"], ["updated_at", "2019-11-22 00:36:50.423721"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 268], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/222” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"222"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 222], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '222')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 268], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.9ms) Started POST “/appointments.222” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 268], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 268], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Lp1UoXToo3PhbmHzh1xCo.AfL3kMIIxBcS2SWGkjsv1NnnMkC9R52"], ["created_at", "2019-11-22 00:36:50.475589"], ["updated_at", "2019-11-22 00:36:50.475589"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:50.489561"], ["last_sign_in_at", "2019-11-22 00:36:50.489561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.490227"], ["id", 269]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 269], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:36:50.500467"], ["updated_at", "2019-11-22 00:36:50.500467"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 269], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 269], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started DELETE “/rooms/224” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"224"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 269], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 224], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 224]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 269], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$SjsQmZGcbn2pjj2KRsJerecekprGZhkkhNbAEM4fIe3KBFflgqCFm"], ["created_at", "2019-11-22 00:36:50.544878"], ["updated_at", "2019-11-22 00:36:50.544878"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:36:50.547136"], ["updated_at", "2019-11-22 00:36:50.547136"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:50.572539"], ["last_sign_in_at", "2019-11-22 00:36:50.572539"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.573283"], ["id", 270]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 270], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 270], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.9ms) Started GET “/rooms/225/edit” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"225"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 270], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 225], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 25ms (Views: 6.7ms | ActiveRecord: 0.8ms) Started PATCH “/rooms/225” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"225"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 270], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 225], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:36:50.648741"], ["id", 225]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/225 Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET “/rooms/225” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"225"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 270], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 225], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 2.5ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.5ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$dy/lsu80uNZ0R8QnEQtQ0.PG4Lxz3Ia38rxtrrYZy5TzH5oBSomOC"], ["created_at", "2019-11-22 00:36:50.689471"], ["updated_at", "2019-11-22 00:36:50.689471"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:50.702249"], ["last_sign_in_at", "2019-11-22 00:36:50.702249"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.702823"], ["id", 271]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 271], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:36:50.714404"], ["updated_at", "2019-11-22 00:36:50.714404"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:50.716277"], ["updated_at", "2019-11-22 00:36:50.716277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 271], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$5BwOqxtKusp1HG22tHPCdOxOPbfhv/0q50u7DLnP8xaQiHQm0YWhu"], ["created_at", "2019-11-22 00:36:50.743947"], ["updated_at", "2019-11-22 00:36:50.743947"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:50.756882"], ["last_sign_in_at", "2019-11-22 00:36:50.756882"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.757465"], ["id", 272]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 272], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:36:50.768996"], ["updated_at", "2019-11-22 00:36:50.768996"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:36:50.770886"], ["updated_at", "2019-11-22 00:36:50.770886"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 272], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$uLob8VwBqYP1f5lj7HrhvemHzivDVUSIUpjvufagyz2drWGzddm5G"], ["created_at", "2019-11-22 00:36:50.801432"], ["updated_at", "2019-11-22 00:36:50.801432"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:50.827563"], ["last_sign_in_at", "2019-11-22 00:36:50.827563"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:50.828101"], ["id", 273]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 273], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:36:50 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (5.5ms)
Rendered users/registrations/new.html.erb within layouts/application (23.9ms)

Completed 200 OK in 124ms (Views: 123.7ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$6kqstr7pzW3UDEnyV01eOOUz60kDvF8aqZSzKl0xBPy70dJAkIaIi"], ["created_at", "2019-11-22 00:36:51.021639"], ["updated_at", "2019-11-22 00:36:51.021639"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:36:51.024102"], ["last_sign_in_at", "2019-11-22 00:36:51.024102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:36:51.024741"], ["id", 274]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 91ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 274], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$TdCmtMNV8o7VVlvs7gZI0.qWhTjGN.K5QZLE6FQBuPJGkiud5H33u"], ["created_at", "2019-11-22 00:36:51.124821"], ["updated_at", "2019-11-22 00:36:51.124821"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:36:51.151148"], ["last_sign_in_at", "2019-11-22 00:36:51.151148"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:36:51.151748"], ["id", 275]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 275], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/users/275/edit” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"275"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 275], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 0.5ms) Started PUT “/users/275” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"275"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 275], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 275], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 275], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:36:51.217105"], ["id", 275]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 166ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:36:51 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 275], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:02 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (4.2ms)

Completed 200 OK in 317ms (Views: 298.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$o6.SUbzCFpYA/J29PtuyAOTLfNpqLD/feDD6R3P4QC0Ns5jsJp4/K"], ["created_at", "2019-11-22 00:39:03.241650"], ["updated_at", "2019-11-22 00:39:03.241650"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (44.0ms)
Rendered users/sessions/new.html.erb within layouts/application (60.1ms)

Completed 200 OK in 215ms (Views: 212.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:03.520370"], ["last_sign_in_at", "2019-11-22 00:39:03.520370"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:03.521110"], ["id", 276]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 159ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 276], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.1ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 52ms (Views: 33.9ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KIrL83HCrPDssxQAE0o8QOObSJY8f68bYBg1vb9EhHaFzAGZUeRVO"], ["created_at", "2019-11-22 00:39:03.745514"], ["updated_at", "2019-11-22 00:39:03.745514"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$ckZmETIbkmq1QFkPhkoaEOlWabV4pWzRvpyilovaAtunoY0hN4Tly"], ["created_at", "2019-11-22 00:39:03.853098"], ["updated_at", "2019-11-22 00:39:03.853098"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:03.869411"], ["last_sign_in_at", "2019-11-22 00:39:03.869411"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:03.870001"], ["id", 278]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 278], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 21ms (Views: 19.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:03.918908"], ["updated_at", "2019-11-22 00:39:03.918908"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 230], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 278], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 278], ["room_id", 230], ["created_at", "2019-11-22 00:39:03.978207"], ["updated_at", "2019-11-22 00:39:03.978207"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:39:03 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 278], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 278]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 72ms (Views: 40.2ms | ActiveRecord: 1.0ms) Started DELETE “/appointments/104” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"104"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 104], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 104]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 278], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$NldfsXBndu/BPdhj5QoukuILEVKPqI/SM/UUOPUPRuLPuWvw/jY5i"], ["created_at", "2019-11-22 00:39:04.089421"], ["updated_at", "2019-11-22 00:39:04.089421"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:04.117876"], ["last_sign_in_at", "2019-11-22 00:39:04.117876"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.118530"], ["id", 279]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 279], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:39:04.128242"], ["updated_at", "2019-11-22 00:39:04.128242"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 231], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 279], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 279], ["room_id", 231], ["created_at", "2019-11-22 00:39:04.133191"], ["updated_at", "2019-11-22 00:39:04.133191"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 279], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 279]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.6ms) Started DELETE “/appointments/105” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"105"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 105], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 105]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 2ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 279], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$LHqdTw.dux/RVlwzWC.r1OD8b8k6pFK1GbDtPIlN8Lq85B2BBYvTe"], ["created_at", "2019-11-22 00:39:04.164963"], ["updated_at", "2019-11-22 00:39:04.164963"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:04.178627"], ["last_sign_in_at", "2019-11-22 00:39:04.178627"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.179250"], ["id", 280]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 280], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:04.196060"], ["updated_at", "2019-11-22 00:39:04.196060"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 232], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 280], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 280], ["room_id", 232], ["created_at", "2019-11-22 00:39:04.203050"], ["updated_at", "2019-11-22 00:39:04.203050"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 280], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 280]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$TpE8mDwFfkhZSjNcEyPIOe01Z4RjZ4xo0rUvhoQm7y4IHNgD8jUmm"], ["created_at", "2019-11-22 00:39:04.224157"], ["updated_at", "2019-11-22 00:39:04.224157"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:04.237112"], ["last_sign_in_at", "2019-11-22 00:39:04.237112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.237663"], ["id", 281]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 281], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:39:04.247287"], ["updated_at", "2019-11-22 00:39:04.247287"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 233], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 281], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 281], ["room_id", 233], ["created_at", "2019-11-22 00:39:04.252517"], ["updated_at", "2019-11-22 00:39:04.252517"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 281], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 281]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$FlJRhh47.CM6pKT8qiBg3ug1p3z6.jVFYPtedDjFiCk.7btOj6kUa"], ["created_at", "2019-11-22 00:39:04.276770"], ["updated_at", "2019-11-22 00:39:04.276770"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:04.289808"], ["last_sign_in_at", "2019-11-22 00:39:04.289808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.290594"], ["id", 282]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 282], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:39:04.303530"], ["updated_at", "2019-11-22 00:39:04.303530"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:04.305417"], ["updated_at", "2019-11-22 00:39:04.305417"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 282], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 64ms (Views: 44.0ms | ActiveRecord: 0.9ms) Started GET “/appointments/234” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"234"}
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 234], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '234')
Rendered appointments/show.html.erb within layouts/application (10.2ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 282], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 33ms (Views: 12.6ms | ActiveRecord: 1.6ms) Started POST “/appointments.234” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 282], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 234], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 282], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 282], ["room_id", 234], ["created_at", "2019-11-22 00:39:04.441909"], ["updated_at", "2019-11-22 00:39:04.441909"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.0ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 282], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$pYvAjxYKL7ozMRrlcStYM.G5dIl/b1iBOriGDI/Ar53EOJ2V/70gK"], ["created_at", "2019-11-22 00:39:04.459909"], ["updated_at", "2019-11-22 00:39:04.459909"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:04.473776"], ["last_sign_in_at", "2019-11-22 00:39:04.473776"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.474646"], ["id", 283]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 283], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:39:04.487285"], ["updated_at", "2019-11-22 00:39:04.487285"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:04.489056"], ["updated_at", "2019-11-22 00:39:04.489056"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 283], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/236” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"236"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 236], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '236')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 283], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 1.1ms) Started POST “/appointments.236” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 283], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 283], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$gKHjVPK1UiWBYpIM3/Rg2ORk8/uulUekWOXyf8jPJSUVN46BH2Lpy"], ["created_at", "2019-11-22 00:39:04.541544"], ["updated_at", "2019-11-22 00:39:04.541544"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:04.554816"], ["last_sign_in_at", "2019-11-22 00:39:04.554816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.555404"], ["id", 284]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 284], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:39:04.566242"], ["updated_at", "2019-11-22 00:39:04.566242"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 284], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 284], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.8ms) Started DELETE “/rooms/238” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"238"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 284], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 238], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 238]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 284], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$uHUH0Dprynhfy/m6vFBhKe8.bGnioe9ZvKQDjK8ccDQGR5yA0LF1e"], ["created_at", "2019-11-22 00:39:04.609802"], ["updated_at", "2019-11-22 00:39:04.609802"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:39:04.611643"], ["updated_at", "2019-11-22 00:39:04.611643"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:04.638493"], ["last_sign_in_at", "2019-11-22 00:39:04.638493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.639060"], ["id", 285]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 285], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 285], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started GET “/rooms/239/edit” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"239"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 285], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 239], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 24ms (Views: 6.0ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/239” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"239"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 285], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 239], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:39:04.708801"], ["id", 239]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/239 Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/rooms/239” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"239"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 285], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 239], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$DbruXJt9J5Te0V4kxR/lKuWLd5tdIGlnyD0nyZtOz4vDDjQY7E47q"], ["created_at", "2019-11-22 00:39:04.746592"], ["updated_at", "2019-11-22 00:39:04.746592"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:04.759828"], ["last_sign_in_at", "2019-11-22 00:39:04.759828"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.760383"], ["id", 286]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 286], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:39:04.772153"], ["updated_at", "2019-11-22 00:39:04.772153"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:04.774090"], ["updated_at", "2019-11-22 00:39:04.774090"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 286], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ipCJrawDLFX4Yfqk5ZiwjuAK/DeY1n8qqCux2sDHVRqJsvk.kqcXe"], ["created_at", "2019-11-22 00:39:04.803836"], ["updated_at", "2019-11-22 00:39:04.803836"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:04.817542"], ["last_sign_in_at", "2019-11-22 00:39:04.817542"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.818093"], ["id", 287]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 287], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:39:04.830143"], ["updated_at", "2019-11-22 00:39:04.830143"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:39:04.832340"], ["updated_at", "2019-11-22 00:39:04.832340"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 287], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$RZdPXDJiu6G5mdZPAEj74OMLZASpZjZ1wjXarTw3hWSXGZvwwFN2C"], ["created_at", "2019-11-22 00:39:04.864658"], ["updated_at", "2019-11-22 00:39:04.864658"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:04.892730"], ["last_sign_in_at", "2019-11-22 00:39:04.892730"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:04.893365"], ["id", 288]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 288], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:39:04 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.3ms)
Rendered users/registrations/new.html.erb within layouts/application (17.3ms)

Completed 200 OK in 107ms (Views: 106.8ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$8z39r6hzWBQRKiw6onAdkOqQb9jikY2ZwY0eN4Imu0lK9eXfqQUJ6"], ["created_at", "2019-11-22 00:39:05.078282"], ["updated_at", "2019-11-22 00:39:05.078282"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:39:05.080139"], ["last_sign_in_at", "2019-11-22 00:39:05.080139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:39:05.080682"], ["id", 289]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 87ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 289], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$eawZjYtdKaLTeX6mlJZQO.LNtTEH3VFU2n4lC9ZlYbVPG5hEvzKQ."], ["created_at", "2019-11-22 00:39:05.179090"], ["updated_at", "2019-11-22 00:39:05.179090"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:39:05.205082"], ["last_sign_in_at", "2019-11-22 00:39:05.205082"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:39:05.205684"], ["id", 290]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 290], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET “/users/290/edit” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"290"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 290], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.5ms) Started PUT “/users/290” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"290"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 290], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 290], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 290], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:39:05.268177"], ["id", 290]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 152ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:39:05 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 290], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$oIjA8OvZJ4.rr9JiSo1l5e54Oro5ibE0Z1QlzzUMCR7Ts..A.xs3u"], ["created_at", "2019-11-22 00:41:27.318128"], ["updated_at", "2019-11-22 00:41:27.318128"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:27 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (43.9ms)
Rendered users/sessions/new.html.erb within layouts/application (328.0ms)

Completed 200 OK in 484ms (Views: 477.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:27 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:27.885299"], ["last_sign_in_at", "2019-11-22 00:41:27.885299"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:27.886122"], ["id", 291]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 159ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 291], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 53ms (Views: 34.3ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 291], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (14.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.6ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 291], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 70ms (Views: 42.1ms | ActiveRecord: 3.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$7e4XAU9QkuAGhPWIApTaPOAHsk.xxFWMqj.1Cf18eD5Rt08IeTPSy"], ["created_at", "2019-11-22 00:41:28.203555"], ["updated_at", "2019-11-22 00:41:28.203555"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.2ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:28.219598"], ["last_sign_in_at", "2019-11-22 00:41:28.219598"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.220150"], ["id", 292]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 292], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 292], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by RoomsController#new as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 292], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 33ms (Views: 17.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$zau1hJSb9l27vbiN32xgsOOm8vAK3lA7tQ9Swir0i7ZNrgbG.D8Xi"], ["created_at", "2019-11-22 00:41:28.305683"], ["updated_at", "2019-11-22 00:41:28.305683"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:28.330779"], ["last_sign_in_at", "2019-11-22 00:41:28.330779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.331403"], ["id", 293]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 293], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$6.JKhDiDX6LnX6bODEuaXeFqWxK5F49nqGzsbt4Uq6QknW9.M.8eK"], ["created_at", "2019-11-22 00:41:28.365278"], ["updated_at", "2019-11-22 00:41:28.365278"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$lAqCDwEFFdF9B0GUIkE8veXl4Kh2vIuy4YvBEsPgmlnt5i3aPf9gK"], ["created_at", "2019-11-22 00:41:28.415611"], ["updated_at", "2019-11-22 00:41:28.415611"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.5ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:28.434083"], ["last_sign_in_at", "2019-11-22 00:41:28.434083"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.434743"], ["id", 295]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 295], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:41:28.447019"], ["updated_at", "2019-11-22 00:41:28.447019"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:28.449478"], ["updated_at", "2019-11-22 00:41:28.449478"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 245], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 295], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["user_id", 295], ["room_id", 245], ["created_at", "2019-11-22 00:41:28.513039"], ["updated_at", "2019-11-22 00:41:28.513039"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 295], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 245], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (4.3ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 295], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 60ms (Views: 42.8ms | ActiveRecord: 1.6ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 295], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.0ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qdg9FzMXdmSCU4Qtxd7SlOk.k6MNHQjn7eVj9vBvdtR2irt1zROba"], ["created_at", "2019-11-22 00:41:28.773971"], ["updated_at", "2019-11-22 00:41:28.773971"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:28.789197"], ["last_sign_in_at", "2019-11-22 00:41:28.789197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.789851"], ["id", 296]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 296], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:41:28.799164"], ["updated_at", "2019-11-22 00:41:28.799164"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:28.801253"], ["updated_at", "2019-11-22 00:41:28.801253"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 247], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 296], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["user_id", 296], ["room_id", 247], ["created_at", "2019-11-22 00:41:28.806379"], ["updated_at", "2019-11-22 00:41:28.806379"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 296], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 247], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.9ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 296], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 296], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aAhyxz0v5dqjUssy9B2JUO.ie5pWMwmTpzZgtH7xHaSCLhF9oCPeW"], ["created_at", "2019-11-22 00:41:28.834638"], ["updated_at", "2019-11-22 00:41:28.834638"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:28.848569"], ["last_sign_in_at", "2019-11-22 00:41:28.848569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.849184"], ["id", 297]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 297], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:41:28.857650"], ["updated_at", "2019-11-22 00:41:28.857650"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:28.859524"], ["updated_at", "2019-11-22 00:41:28.859524"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 249], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 297], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["user_id", 297], ["room_id", 249], ["created_at", "2019-11-22 00:41:28.864902"], ["updated_at", "2019-11-22 00:41:28.864902"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 297], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 249], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.3ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 297], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 297], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KT/MF.iEvPuFmra55TLMhuVEfui0qYxJTD6rzWS2Nxuuh777qdCN6"], ["created_at", "2019-11-22 00:41:28.905044"], ["updated_at", "2019-11-22 00:41:28.905044"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:28.920202"], ["last_sign_in_at", "2019-11-22 00:41:28.920202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:28.920772"], ["id", 298]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 298], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:41:28.929929"], ["updated_at", "2019-11-22 00:41:28.929929"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:28.931835"], ["updated_at", "2019-11-22 00:41:28.931835"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 251], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 298], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["user_id", 298], ["room_id", 251], ["created_at", "2019-11-22 00:41:28.937996"], ["updated_at", "2019-11-22 00:41:28.937996"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 298], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 251], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (4.3ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 298], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 298], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$QdiDZ.ObMNsvHyBmvvzoceOfPUvdiE6tDor9c2SpQIDrFyFG/IDgi"], ["created_at", "2019-11-22 00:41:28.979510"], ["updated_at", "2019-11-22 00:41:28.979510"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (6.6ms)

Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:28.999815"], ["last_sign_in_at", "2019-11-22 00:41:28.999815"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.000540"], ["id", 299]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 299], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.036788"], ["updated_at", "2019-11-22 00:41:29.036788"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 252], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 299], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 299], ["room_id", 252], ["created_at", "2019-11-22 00:41:29.043249"], ["updated_at", "2019-11-22 00:41:29.043249"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 299], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 299]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 39ms (Views: 4.6ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/113” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"113"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 113], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 113]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 299], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$y2XQlKHrCNak3lE5KJ7dF.hQVAuRsPQsVXOrGpVw3rLwHt.uw8ali"], ["created_at", "2019-11-22 00:41:29.110380"], ["updated_at", "2019-11-22 00:41:29.110380"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:29.124534"], ["last_sign_in_at", "2019-11-22 00:41:29.124534"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.125062"], ["id", 300]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 300], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:29.134311"], ["updated_at", "2019-11-22 00:41:29.134311"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 253], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 300], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 300], ["room_id", 253], ["created_at", "2019-11-22 00:41:29.139179"], ["updated_at", "2019-11-22 00:41:29.139179"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 300], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 300]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/114” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"114"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 114], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 114]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 2ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 300], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$Izmw7NMrEEYL6.gz2epSneNcU2wqQruzj2aBaf4arczxr6NXeD9zm"], ["created_at", "2019-11-22 00:41:29.170230"], ["updated_at", "2019-11-22 00:41:29.170230"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:29.185013"], ["last_sign_in_at", "2019-11-22 00:41:29.185013"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.185617"], ["id", 301]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 301], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.202956"], ["updated_at", "2019-11-22 00:41:29.202956"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 254], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 301], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 301], ["room_id", 254], ["created_at", "2019-11-22 00:41:29.209248"], ["updated_at", "2019-11-22 00:41:29.209248"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 301], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 301]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$mZjRVZ4K47.V65h9ZTE2De6KXXWcBALxtKWCn.YNc3KfnYU/KzvPO"], ["created_at", "2019-11-22 00:41:29.229366"], ["updated_at", "2019-11-22 00:41:29.229366"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:29.242627"], ["last_sign_in_at", "2019-11-22 00:41:29.242627"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.243188"], ["id", 302]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 302], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:41:29.253477"], ["updated_at", "2019-11-22 00:41:29.253477"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 255], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 302], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 302], ["room_id", 255], ["created_at", "2019-11-22 00:41:29.258903"], ["updated_at", "2019-11-22 00:41:29.258903"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 302], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 302]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3dqxdo8bX7JwEWoUuMzQuuMwFxLLGpTtfxi8T6h13mgAI1QEReYhK"], ["created_at", "2019-11-22 00:41:29.286860"], ["updated_at", "2019-11-22 00:41:29.286860"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:29.299997"], ["last_sign_in_at", "2019-11-22 00:41:29.299997"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.300592"], ["id", 303]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 303], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:41:29.313067"], ["updated_at", "2019-11-22 00:41:29.313067"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.314813"], ["updated_at", "2019-11-22 00:41:29.314813"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 303], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started GET “/appointments/256” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"256"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 256], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '256')
Rendered appointments/show.html.erb within layouts/application (9.9ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 303], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 30ms (Views: 11.9ms | ActiveRecord: 1.2ms) Started POST “/appointments.256” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 303], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 256], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 303], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 303], ["room_id", 256], ["created_at", "2019-11-22 00:41:29.398012"], ["updated_at", "2019-11-22 00:41:29.398012"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 303], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$k./7V3bxWMkoNYa97rU7Z.xrimzqOYSrl99hjckMXgUy/7O/ifrtW"], ["created_at", "2019-11-22 00:41:29.416024"], ["updated_at", "2019-11-22 00:41:29.416024"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:29.429717"], ["last_sign_in_at", "2019-11-22 00:41:29.429717"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.430361"], ["id", 304]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 304], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:41:29.442791"], ["updated_at", "2019-11-22 00:41:29.442791"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.444977"], ["updated_at", "2019-11-22 00:41:29.444977"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 304], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.8ms) Started GET “/appointments/258” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"258"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 258], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '258')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 304], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.9ms) Started POST “/appointments.258” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 304], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 304], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$g9P4UIDzeHx1RNWJNiK.IOMtAYSpP4.bn5jKzzuO/R2EqvOrKpKe."], ["created_at", "2019-11-22 00:41:29.502024"], ["updated_at", "2019-11-22 00:41:29.502024"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:29.515566"], ["last_sign_in_at", "2019-11-22 00:41:29.515566"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.516137"], ["id", 305]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 305], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:41:29.526901"], ["updated_at", "2019-11-22 00:41:29.526901"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 305], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 305], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.8ms) Started DELETE “/rooms/260” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"260"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 305], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 260], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 260]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 305], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$BXz8ocBXAWTa23k2WSmNCeNbmU.qFA/t5BZ6QnRyfFnVrwxV.B4Vu"], ["created_at", "2019-11-22 00:41:29.575462"], ["updated_at", "2019-11-22 00:41:29.575462"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:41:29.578105"], ["updated_at", "2019-11-22 00:41:29.578105"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:29.604059"], ["last_sign_in_at", "2019-11-22 00:41:29.604059"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.604726"], ["id", 306]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 306], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 306], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms) Started GET “/rooms/261/edit” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"261"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 306], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 261], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.3ms | ActiveRecord: 0.9ms) Started PATCH “/rooms/261” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"261"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 306], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 261], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:41:29.666892"], ["id", 261]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/261 Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/rooms/261” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"261"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 306], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 261], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$RMfJG0nKpD9rBsNDPNUfF.XfyMzzwBlzgeHm0k9AkQdsbb27EV3Wi"], ["created_at", "2019-11-22 00:41:29.706866"], ["updated_at", "2019-11-22 00:41:29.706866"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:29.720937"], ["last_sign_in_at", "2019-11-22 00:41:29.720937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.721525"], ["id", 307]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 307], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:41:29.733671"], ["updated_at", "2019-11-22 00:41:29.733671"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.735587"], ["updated_at", "2019-11-22 00:41:29.735587"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 307], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$w0DYISTVY5VV51e6c5yf.uzNoxshMYkWefdCTfSUpmVRA9Q9tIPr."], ["created_at", "2019-11-22 00:41:29.764445"], ["updated_at", "2019-11-22 00:41:29.764445"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:29.777789"], ["last_sign_in_at", "2019-11-22 00:41:29.777789"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.778491"], ["id", 308]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 308], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:41:29.790345"], ["updated_at", "2019-11-22 00:41:29.790345"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:41:29.792399"], ["updated_at", "2019-11-22 00:41:29.792399"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 308], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.8ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$IZzSuPFhySQmXDQYseBJBuip..SsAWO/MEvJAH0o3FU0/DhVtBemO"], ["created_at", "2019-11-22 00:41:29.829748"], ["updated_at", "2019-11-22 00:41:29.829748"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:29.855418"], ["last_sign_in_at", "2019-11-22 00:41:29.855418"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:29.855965"], ["id", 309]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 309], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:41:29 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.3ms)
Rendered users/registrations/new.html.erb within layouts/application (17.5ms)

Completed 200 OK in 108ms (Views: 107.0ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$TDe6VfaqZwJT3TSy4O4r7OUd31AHCknCC890aKmhvkJv8NVjzneWC"], ["created_at", "2019-11-22 00:41:30.032296"], ["updated_at", "2019-11-22 00:41:30.032296"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:41:30.034199"], ["last_sign_in_at", "2019-11-22 00:41:30.034199"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:41:30.034676"], ["id", 310]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 85ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 310], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$bZ5C7XQaHk0j1i.FC5HKz.8fX6bJrlkk/pQ/uQoklc9x7KdjSY.J6"], ["created_at", "2019-11-22 00:41:30.131621"], ["updated_at", "2019-11-22 00:41:30.131621"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:41:30.157500"], ["last_sign_in_at", "2019-11-22 00:41:30.157500"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:41:30.158330"], ["id", 311]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 311], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET “/users/311/edit” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"311"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 311], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.4ms) Started PUT “/users/311” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"311"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 311], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 311], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 311], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:41:30.220839"], ["id", 311]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 169ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:41:30 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 311], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$hgk5CQSGESz7H/sL9BHB4uxcDyXYyJrThYmLja/ffxioZSeK6OZTK"], ["created_at", "2019-11-22 00:49:30.929350"], ["updated_at", "2019-11-22 00:49:30.929350"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (46.2ms)
Rendered users/sessions/new.html.erb within layouts/application (339.9ms)

Completed 200 OK in 495ms (Views: 488.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:31.510086"], ["last_sign_in_at", "2019-11-22 00:49:31.510086"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:31.510802"], ["id", 312]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 160ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 312], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 52ms (Views: 33.9ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 312], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 312], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 70ms (Views: 42.5ms | ActiveRecord: 3.8ms)

 (0.6ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KiRApry7vbFe2RZ39DlQIefw3RbQG/CdvzeV2yfkGmI7Q5IvhwUaK"], ["created_at", "2019-11-22 00:49:31.831389"], ["updated_at", "2019-11-22 00:49:31.831389"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:31.847019"], ["last_sign_in_at", "2019-11-22 00:49:31.847019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:31.847669"], ["id", 313]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 313], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 313], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by RoomsController#new as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 313], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 33ms (Views: 17.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Ur3MmeI0i.6tEztgCKRZBu.JeNgBJKeJUD6k76DAIeHrEM4Ni.pHW"], ["created_at", "2019-11-22 00:49:31.931114"], ["updated_at", "2019-11-22 00:49:31.931114"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:31.956409"], ["last_sign_in_at", "2019-11-22 00:49:31.956409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:31.957162"], ["id", 314]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 314], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms)
Rendered layouts/_header-admin.html.erb (3.3ms)

Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$eX5JjrXt9zANnWxz5TVCpOGRLUbBCtrRL4V6roim2nol1esngpBL2"], ["created_at", "2019-11-22 00:49:31.989677"], ["updated_at", "2019-11-22 00:49:31.989677"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$tL5Fr0/v7XAsZclq3CcAw.ZHXmCdjAMwDG5/hmtDeR3WOkFYThHCC"], ["created_at", "2019-11-22 00:49:32.039656"], ["updated_at", "2019-11-22 00:49:32.039656"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.057734"], ["last_sign_in_at", "2019-11-22 00:49:32.057734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.058263"], ["id", 316]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 316], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:49:32.070110"], ["updated_at", "2019-11-22 00:49:32.070110"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.072841"], ["updated_at", "2019-11-22 00:49:32.072841"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 267], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 316], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 316], ["room_id", 267], ["created_at", "2019-11-22 00:49:32.135418"], ["updated_at", "2019-11-22 00:49:32.135418"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 316], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 267], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.8ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 316], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 69ms (Views: 51.7ms | ActiveRecord: 1.6ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 316], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$onN03OvxssXZ0FTwP/rABO1/3KCq1rXnx1fwzW.q/8Y65qPnmIu5a"], ["created_at", "2019-11-22 00:49:32.263124"], ["updated_at", "2019-11-22 00:49:32.263124"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.277038"], ["last_sign_in_at", "2019-11-22 00:49:32.277038"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.277608"], ["id", 317]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 317], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:49:32.286113"], ["updated_at", "2019-11-22 00:49:32.286113"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.287861"], ["updated_at", "2019-11-22 00:49:32.287861"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 269], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 317], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 317], ["room_id", 269], ["created_at", "2019-11-22 00:49:32.292842"], ["updated_at", "2019-11-22 00:49:32.292842"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 317], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 269], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.5ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 317], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 1.1ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 317], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$CdWZjMXhu/.UhqyMld2S8OFCDGhSpDVFJAYhj36KKR7jYndn8vQre"], ["created_at", "2019-11-22 00:49:32.319212"], ["updated_at", "2019-11-22 00:49:32.319212"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.332912"], ["last_sign_in_at", "2019-11-22 00:49:32.332912"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.333483"], ["id", 318]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 318], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.6ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:49:32.342246"], ["updated_at", "2019-11-22 00:49:32.342246"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.344130"], ["updated_at", "2019-11-22 00:49:32.344130"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 271], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 318], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 318], ["room_id", 271], ["created_at", "2019-11-22 00:49:32.348834"], ["updated_at", "2019-11-22 00:49:32.348834"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 318], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 271], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 318], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 318], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Qx8zloUcHiB6u3qh0LxZkucriMVeaNsf6goT4uD0aomW0I8bJMSPe"], ["created_at", "2019-11-22 00:49:32.385524"], ["updated_at", "2019-11-22 00:49:32.385524"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.399143"], ["last_sign_in_at", "2019-11-22 00:49:32.399143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.399666"], ["id", 319]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 319], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:49:32.408638"], ["updated_at", "2019-11-22 00:49:32.408638"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.410389"], ["updated_at", "2019-11-22 00:49:32.410389"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 273], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 319], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 319], ["room_id", 273], ["created_at", "2019-11-22 00:49:32.415154"], ["updated_at", "2019-11-22 00:49:32.415154"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 319], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 273], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.9ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 319], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 319], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$GHLFRSD32z8Q/gjClcWLquNt18Fk8.L.FtycMUEDQ3kftNzakKifS"], ["created_at", "2019-11-22 00:49:32.447064"], ["updated_at", "2019-11-22 00:49:32.447064"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.464388"], ["last_sign_in_at", "2019-11-22 00:49:32.464388"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.464976"], ["id", 320]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 320], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:32.503839"], ["updated_at", "2019-11-22 00:49:32.503839"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 274], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 320], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 320], ["room_id", 274], ["created_at", "2019-11-22 00:49:32.510110"], ["updated_at", "2019-11-22 00:49:32.510110"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 320], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 320]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 43ms (Views: 4.9ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/122” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"122"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 122], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 122]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 320], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$ApSb7opUPDJrKwYbtGWsoOfbWKeqVneFhgvgUvU2QyMvMpZJ8OeEi"], ["created_at", "2019-11-22 00:49:32.580325"], ["updated_at", "2019-11-22 00:49:32.580325"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.595788"], ["last_sign_in_at", "2019-11-22 00:49:32.595788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.596428"], ["id", 321]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 321], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.606229"], ["updated_at", "2019-11-22 00:49:32.606229"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 275], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 321], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 321], ["room_id", 275], ["created_at", "2019-11-22 00:49:32.612082"], ["updated_at", "2019-11-22 00:49:32.612082"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 321], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 321]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/123” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"123"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 123], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 123]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 321], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$n1JWBcaCeSXy97vjR/a7C.OZdqI9GEX0acwe5KILY9tUy8/G4U7vu"], ["created_at", "2019-11-22 00:49:32.646239"], ["updated_at", "2019-11-22 00:49:32.646239"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.660961"], ["last_sign_in_at", "2019-11-22 00:49:32.660961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.661574"], ["id", 322]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 322], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:32.678191"], ["updated_at", "2019-11-22 00:49:32.678191"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 276], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 322], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 322], ["room_id", 276], ["created_at", "2019-11-22 00:49:32.684165"], ["updated_at", "2019-11-22 00:49:32.684165"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 322], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 322]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$f7xdWtNza22Cmo.7ZpKlt.tDHdSiKpv5g8dyCaICltwKcGVc85Gga"], ["created_at", "2019-11-22 00:49:32.706688"], ["updated_at", "2019-11-22 00:49:32.706688"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.720862"], ["last_sign_in_at", "2019-11-22 00:49:32.720862"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.721597"], ["id", 323]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 323], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:49:32.731476"], ["updated_at", "2019-11-22 00:49:32.731476"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 277], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 323], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 323], ["room_id", 277], ["created_at", "2019-11-22 00:49:32.736893"], ["updated_at", "2019-11-22 00:49:32.736893"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 323], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 323]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$X6Jp1EhaVXBobENyiy0y6.5ewtPcvCIRAU1riaUUy6wrz9mvABpCG"], ["created_at", "2019-11-22 00:49:32.762704"], ["updated_at", "2019-11-22 00:49:32.762704"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.777787"], ["last_sign_in_at", "2019-11-22 00:49:32.777787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.778352"], ["id", 324]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 324], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:49:32.791879"], ["updated_at", "2019-11-22 00:49:32.791879"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:32.793690"], ["updated_at", "2019-11-22 00:49:32.793690"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 324], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 22ms (Views: 3.8ms | ActiveRecord: 0.9ms) Started GET “/appointments/278” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"278"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 278], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '278')
Rendered appointments/show.html.erb within layouts/application (10.3ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 324], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 32ms (Views: 12.3ms | ActiveRecord: 1.2ms) Started POST “/appointments.278” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 324], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 278], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 324], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 324], ["room_id", 278], ["created_at", "2019-11-22 00:49:32.878752"], ["updated_at", "2019-11-22 00:49:32.878752"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 324], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$EoMjOFfRhGgh9/QtWwp51uJ0TNHFIvAyfCRkATHywswKf9Y7E2VS6"], ["created_at", "2019-11-22 00:49:32.896384"], ["updated_at", "2019-11-22 00:49:32.896384"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.910213"], ["last_sign_in_at", "2019-11-22 00:49:32.910213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.910857"], ["id", 325]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 325], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:49:32.923264"], ["updated_at", "2019-11-22 00:49:32.923264"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:32.925137"], ["updated_at", "2019-11-22 00:49:32.925137"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 325], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/280” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"280"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 280], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '280')
Rendered appointments/show.html.erb within layouts/application (1.6ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 325], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 1.1ms) Started POST “/appointments.280” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 325], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 325], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$k9vRRh69lNvoQhlpq5x13.VQxmPREC/RWrAfSaaQbQ3GY4Yq47S7q"], ["created_at", "2019-11-22 00:49:32.983216"], ["updated_at", "2019-11-22 00:49:32.983216"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:32.996942"], ["last_sign_in_at", "2019-11-22 00:49:32.996942"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:32.997576"], ["id", 326]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 326], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:49:33.008997"], ["updated_at", "2019-11-22 00:49:33.008997"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 326], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 326], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (5.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.9ms) Started DELETE “/rooms/282” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"282"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 326], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 282], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 282]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 326], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$XsIBZs3tMNJ9Y9c9LYO6yOuQHyNskcKoE6ADErSAphLeGsIiLyNEe"], ["created_at", "2019-11-22 00:49:33.057339"], ["updated_at", "2019-11-22 00:49:33.057339"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:49:33.059505"], ["updated_at", "2019-11-22 00:49:33.059505"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:33.085662"], ["last_sign_in_at", "2019-11-22 00:49:33.085662"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:33.086446"], ["id", 327]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 327], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 327], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.8ms) Started GET “/rooms/283/edit” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"283"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 327], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 283], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/283” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"283"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 327], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 283], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:49:33.147078"], ["id", 283]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/283 Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/rooms/283” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"283"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 327], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 283], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 19ms (Views: 2.4ms | ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$eXhJmSDVSxZT7dCmSkwb3ehOS9kRDBVM4uaue3cknCHg4IA3o/qSG"], ["created_at", "2019-11-22 00:49:33.186855"], ["updated_at", "2019-11-22 00:49:33.186855"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:33.200661"], ["last_sign_in_at", "2019-11-22 00:49:33.200661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:33.201254"], ["id", 328]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 328], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:49:33.212998"], ["updated_at", "2019-11-22 00:49:33.212998"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:33.214731"], ["updated_at", "2019-11-22 00:49:33.214731"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 328], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$i41TlZP1YzKGgsKeecOexuDjjexoFE7bAyOeR5ROyK3zawyMxr6vy"], ["created_at", "2019-11-22 00:49:33.245106"], ["updated_at", "2019-11-22 00:49:33.245106"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:33.258681"], ["last_sign_in_at", "2019-11-22 00:49:33.258681"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:33.259297"], ["id", 329]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 329], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:49:33.271293"], ["updated_at", "2019-11-22 00:49:33.271293"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:49:33.273474"], ["updated_at", "2019-11-22 00:49:33.273474"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 329], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$Th8UEOexJ77bWrBbt.SCE.osb692y9bno.gv167t7iZRXvXCV0rF6"], ["created_at", "2019-11-22 00:49:33.308522"], ["updated_at", "2019-11-22 00:49:33.308522"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:33.334256"], ["last_sign_in_at", "2019-11-22 00:49:33.334256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:33.334832"], ["id", 330]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 330], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.3ms)
Rendered users/registrations/new.html.erb within layouts/application (17.4ms)

Completed 200 OK in 107ms (Views: 106.6ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$zxROLR6LpdryYpUWPlk5Ke99PSlyW8jJa6/DNm2ZlB.AL8YL2qk.G"], ["created_at", "2019-11-22 00:49:33.513078"], ["updated_at", "2019-11-22 00:49:33.513078"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:49:33.514770"], ["last_sign_in_at", "2019-11-22 00:49:33.514770"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:49:33.515191"], ["id", 331]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 87ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 331], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$wb3AHcGTOy5rjfZQ5aAu8OrZLgaXEjzWR.XQvjrrzE.XUwZiGrpmy"], ["created_at", "2019-11-22 00:49:33.614551"], ["updated_at", "2019-11-22 00:49:33.614551"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:49:33.640732"], ["last_sign_in_at", "2019-11-22 00:49:33.640732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:49:33.641499"], ["id", 332]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 332], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET “/users/332/edit” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"332"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 332], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.5ms) Started PUT “/users/332” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"332"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 332], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 332], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 332], ["LIMIT", 1]]
SQL (0.5ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:49:33.703751"], ["id", 332]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 152ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:49:33 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 332], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.5ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$wNVUIGVODpcs5OwMGRYv5uXVsf.jGXt9pgpyFsfUD.xXzpK21/V3q"], ["created_at", "2019-11-22 00:55:26.433721"], ["updated_at", "2019-11-22 00:55:26.433721"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:26 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (46.3ms)
Rendered users/sessions/new.html.erb within layouts/application (338.8ms)

Completed 200 OK in 495ms (Views: 487.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:27.012507"], ["last_sign_in_at", "2019-11-22 00:55:27.012507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.013210"], ["id", 333]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 162ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 333], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 54ms (Views: 35.1ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 333], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 333], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 73ms (Views: 43.3ms | ActiveRecord: 3.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$dMmMH1jX9MXWOOGjrPZ9V.WUGVD7im/vjAtdDJwi5FOAP96VHNAKW"], ["created_at", "2019-11-22 00:55:27.340668"], ["updated_at", "2019-11-22 00:55:27.340668"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:27.356422"], ["last_sign_in_at", "2019-11-22 00:55:27.356422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.356972"], ["id", 334]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 334], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 334], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by RoomsController#new as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 334], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$N6W4gHlZLmGW6ed1bI/bnusmAp8W0vbqWdrFXMGT7LEvSWeWQcoOq"], ["created_at", "2019-11-22 00:55:27.442857"], ["updated_at", "2019-11-22 00:55:27.442857"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:27.467356"], ["last_sign_in_at", "2019-11-22 00:55:27.467356"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.467980"], ["id", 335]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 335], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (3.6ms)

Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.6ms)

Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aqqwe8rnzeDULflZnIR1MuXBWE.pMlw53hlFB9difwAGL/fguTtNi"], ["created_at", "2019-11-22 00:55:27.500683"], ["updated_at", "2019-11-22 00:55:27.500683"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$lotEX2tjaUfTfwARD2.KIurnmod3gb5bMQbe1IpR/1ScAvxdA5zMO"], ["created_at", "2019-11-22 00:55:27.550673"], ["updated_at", "2019-11-22 00:55:27.550673"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.5ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:27.569453"], ["last_sign_in_at", "2019-11-22 00:55:27.569453"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.570128"], ["id", 337]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 337], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:55:27.582371"], ["updated_at", "2019-11-22 00:55:27.582371"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:27.584945"], ["updated_at", "2019-11-22 00:55:27.584945"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 289], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 337], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 337], ["room_id", 289], ["created_at", "2019-11-22 00:55:27.650942"], ["updated_at", "2019-11-22 00:55:27.650942"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 337], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 289], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (4.6ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 337], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 72ms (Views: 53.7ms | ActiveRecord: 1.7ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 337], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 3.1ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aufA4v44BXL.5UPcj2OOKeRPdkJrnZHrpHDnB4og04QMxntwYZaEe"], ["created_at", "2019-11-22 00:55:27.778423"], ["updated_at", "2019-11-22 00:55:27.778423"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:27.793623"], ["last_sign_in_at", "2019-11-22 00:55:27.793623"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.794256"], ["id", 338]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 338], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:55:27.803862"], ["updated_at", "2019-11-22 00:55:27.803862"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:27.805825"], ["updated_at", "2019-11-22 00:55:27.805825"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 291], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 338], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 338], ["room_id", 291], ["created_at", "2019-11-22 00:55:27.811060"], ["updated_at", "2019-11-22 00:55:27.811060"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 338], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 291], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.8ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 338], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 338], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$laZe4Gp9AahWs2MWD5DTJOqI3aHvJS.dE1JmLoCHCeuUSxz52dQVS"], ["created_at", "2019-11-22 00:55:27.836201"], ["updated_at", "2019-11-22 00:55:27.836201"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:27.850406"], ["last_sign_in_at", "2019-11-22 00:55:27.850406"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.851120"], ["id", 339]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 339], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:55:27.859794"], ["updated_at", "2019-11-22 00:55:27.859794"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:27.861783"], ["updated_at", "2019-11-22 00:55:27.861783"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 293], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 339], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 339], ["room_id", 293], ["created_at", "2019-11-22 00:55:27.867886"], ["updated_at", "2019-11-22 00:55:27.867886"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 339], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 293], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 339], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 339], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$wtYIVFSfltUuCe4nxPN24u7l2gw4NlZu5mazW5YZmC1elBqFov36O"], ["created_at", "2019-11-22 00:55:27.908497"], ["updated_at", "2019-11-22 00:55:27.908497"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:27.922602"], ["last_sign_in_at", "2019-11-22 00:55:27.922602"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.923196"], ["id", 340]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 340], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:55:27.932604"], ["updated_at", "2019-11-22 00:55:27.932604"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:27.934573"], ["updated_at", "2019-11-22 00:55:27.934573"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 295], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 340], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 340], ["room_id", 295], ["created_at", "2019-11-22 00:55:27.939170"], ["updated_at", "2019-11-22 00:55:27.939170"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 340], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 295], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 340], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 340], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$weCauW7Lp.pAXQ7pVfGxa.cZo9C7Tdvf6G0A4KZPYaa8S2yOwc3zK"], ["created_at", "2019-11-22 00:55:27.970447"], ["updated_at", "2019-11-22 00:55:27.970447"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:27.984642"], ["last_sign_in_at", "2019-11-22 00:55:27.984642"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:27.985368"], ["id", 341]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:27 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 341], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.025094"], ["updated_at", "2019-11-22 00:55:28.025094"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 296], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 341], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 341], ["room_id", 296], ["created_at", "2019-11-22 00:55:28.030732"], ["updated_at", "2019-11-22 00:55:28.030732"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 341], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 341]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 41ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/131” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"131"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 131], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 131]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 341], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$VhqytUvGm7syqC2yFZzsCuYkYQPIMXHqFds79LSqSs/uUlhvdZ5Ni"], ["created_at", "2019-11-22 00:55:28.100136"], ["updated_at", "2019-11-22 00:55:28.100136"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:28.115016"], ["last_sign_in_at", "2019-11-22 00:55:28.115016"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.115938"], ["id", 342]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 342], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:28.126039"], ["updated_at", "2019-11-22 00:55:28.126039"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 297], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 342], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 342], ["room_id", 297], ["created_at", "2019-11-22 00:55:28.132646"], ["updated_at", "2019-11-22 00:55:28.132646"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 342], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 342]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/132” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"132"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 132], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 132]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 342], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$yASsKQyFdsOcbon7bLRmv.A/z/yIRYLrJZCbhUs4cSTaCGyK4xD.m"], ["created_at", "2019-11-22 00:55:28.167958"], ["updated_at", "2019-11-22 00:55:28.167958"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:28.182957"], ["last_sign_in_at", "2019-11-22 00:55:28.182957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.183742"], ["id", 343]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 343], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.201168"], ["updated_at", "2019-11-22 00:55:28.201168"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 298], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 343], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 343], ["room_id", 298], ["created_at", "2019-11-22 00:55:28.208301"], ["updated_at", "2019-11-22 00:55:28.208301"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 343], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 343]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$h22mUZElZcL7YLVwec1FvORJ3XKV.CNv.3mAZOnym5C.pwg.ksLpy"], ["created_at", "2019-11-22 00:55:28.230663"], ["updated_at", "2019-11-22 00:55:28.230663"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:28.243945"], ["last_sign_in_at", "2019-11-22 00:55:28.243945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.244500"], ["id", 344]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 344], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:55:28.254343"], ["updated_at", "2019-11-22 00:55:28.254343"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 299], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 344], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 344], ["room_id", 299], ["created_at", "2019-11-22 00:55:28.259109"], ["updated_at", "2019-11-22 00:55:28.259109"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 344], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 344]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$TAzZ6skK4EC4VjhShBa8lu4Opgcs0YLzUm9RKFk22dTM0RUQ3j3WC"], ["created_at", "2019-11-22 00:55:28.283059"], ["updated_at", "2019-11-22 00:55:28.283059"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:28.300162"], ["last_sign_in_at", "2019-11-22 00:55:28.300162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.300836"], ["id", 345]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 345], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:55:28.313194"], ["updated_at", "2019-11-22 00:55:28.313194"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.316076"], ["updated_at", "2019-11-22 00:55:28.316076"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 345], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started GET “/appointments/300” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"300"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 300], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '300')
Rendered appointments/show.html.erb within layouts/application (10.0ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 345], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 30ms (Views: 12.1ms | ActiveRecord: 1.2ms) Started POST “/appointments.300” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 345], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 300], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 345], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 345], ["room_id", 300], ["created_at", "2019-11-22 00:55:28.397706"], ["updated_at", "2019-11-22 00:55:28.397706"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 345], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$rknWYHllVsvUwL3Dek8W3eQd7duy4nFMblLRtHbojWGQwfV2A4OZG"], ["created_at", "2019-11-22 00:55:28.415711"], ["updated_at", "2019-11-22 00:55:28.415711"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:28.428728"], ["last_sign_in_at", "2019-11-22 00:55:28.428728"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.429392"], ["id", 346]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 346], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:55:28.442116"], ["updated_at", "2019-11-22 00:55:28.442116"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.443835"], ["updated_at", "2019-11-22 00:55:28.443835"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 346], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/302” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"302"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 302], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '302')
Rendered appointments/show.html.erb within layouts/application (1.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 346], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 1.1ms) Started POST “/appointments.302” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 346], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 346], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$tcZyCJ/HDr094D5i0tIjKOHhjvcmUv1H3uSLMckDwiE4ly63QCO3K"], ["created_at", "2019-11-22 00:55:28.501882"], ["updated_at", "2019-11-22 00:55:28.501882"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:28.515510"], ["last_sign_in_at", "2019-11-22 00:55:28.515510"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.516184"], ["id", 347]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 347], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:55:28.527048"], ["updated_at", "2019-11-22 00:55:28.527048"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 347], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 347], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/304” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"304"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 347], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 304], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 304]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 347], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$tQFWgJ7rQuUPfZMYyhpQUObwq7MXRbrEYXdVjx.N0v3Kpk6bOGPj."], ["created_at", "2019-11-22 00:55:28.575859"], ["updated_at", "2019-11-22 00:55:28.575859"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:55:28.577894"], ["updated_at", "2019-11-22 00:55:28.577894"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:28.603812"], ["last_sign_in_at", "2019-11-22 00:55:28.603812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.604440"], ["id", 348]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 348], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 348], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.9ms) Started GET “/rooms/305/edit” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"305"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 348], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 305], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 22ms (Views: 3.3ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/305” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"305"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 348], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 305], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:55:28.669520"], ["id", 305]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/305 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/rooms/305” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"305"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 348], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 305], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 0.6ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3HB7ikfmDTkgNI3ZWMZipOWkRtZ70oKOsfvoLWNhEW9OG/pXuqmKq"], ["created_at", "2019-11-22 00:55:28.711492"], ["updated_at", "2019-11-22 00:55:28.711492"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:28.726861"], ["last_sign_in_at", "2019-11-22 00:55:28.726861"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.727434"], ["id", 349]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 349], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:55:28.739921"], ["updated_at", "2019-11-22 00:55:28.739921"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.741779"], ["updated_at", "2019-11-22 00:55:28.741779"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 349], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Awy5fFfYowp4au/QQr/oUuHSoBVkWoXiO1RMP7tepbnIlOcI5AEIy"], ["created_at", "2019-11-22 00:55:28.773902"], ["updated_at", "2019-11-22 00:55:28.773902"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:28.788700"], ["last_sign_in_at", "2019-11-22 00:55:28.788700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.789274"], ["id", 350]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 350], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:55:28.801424"], ["updated_at", "2019-11-22 00:55:28.801424"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:55:28.803635"], ["updated_at", "2019-11-22 00:55:28.803635"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 350], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$40TNBlLgodzt2otsF2JUpePagFXIZh/DCx5/FqJs1MPtjvSOAe3HO"], ["created_at", "2019-11-22 00:55:28.836143"], ["updated_at", "2019-11-22 00:55:28.836143"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:28.868818"], ["last_sign_in_at", "2019-11-22 00:55:28.868818"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:28.869343"], ["id", 351]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 351], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:55:28 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.5ms)
Rendered users/registrations/new.html.erb within layouts/application (18.0ms)

Completed 200 OK in 114ms (Views: 113.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$Q7gOzds40X5Ay8BLNvgPduP8W4W/3a7tD3g3R7nE4Gt15ZLdkACt6"], ["created_at", "2019-11-22 00:55:29.054305"], ["updated_at", "2019-11-22 00:55:29.054305"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:55:29.056993"], ["last_sign_in_at", "2019-11-22 00:55:29.056993"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:55:29.057514"], ["id", 352]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 87ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 352], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$VObBcc892pDfsRd7PpyD.u7ewf2cpWIifqSeMQ0piPspUtE/b/bmq"], ["created_at", "2019-11-22 00:55:29.154064"], ["updated_at", "2019-11-22 00:55:29.154064"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:55:29.180668"], ["last_sign_in_at", "2019-11-22 00:55:29.180668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:55:29.181688"], ["id", 353]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 353], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET “/users/353/edit” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"353"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 353], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 24ms (Views: 22.4ms | ActiveRecord: 0.4ms) Started PUT “/users/353” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"353"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 353], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 353], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 353], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:55:29.242803"], ["id", 353]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 174ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:55:29 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 353], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aQ2CFrqpAyn7xtAFlwP5velMNtdxnLRRZIlNLl9hOnVYEJxnYyZfq"], ["created_at", "2019-11-22 00:57:53.175264"], ["updated_at", "2019-11-22 00:57:53.175264"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:53 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (45.3ms)
Rendered users/sessions/new.html.erb within layouts/application (336.5ms)

Completed 200 OK in 493ms (Views: 485.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:53 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:53.753028"], ["last_sign_in_at", "2019-11-22 00:57:53.753028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:53.753757"], ["id", 354]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 161ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:53 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 354], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 54ms (Views: 35.4ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:53 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 354], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:57:53 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 354], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 73ms (Views: 44.8ms | ActiveRecord: 3.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$xpiVQpoHdCj9nLO/hL/hKuBtz.re97CSYyS9QmVRyUJA.M75xxuky"], ["created_at", "2019-11-22 00:57:54.078988"], ["updated_at", "2019-11-22 00:57:54.078988"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:54.095274"], ["last_sign_in_at", "2019-11-22 00:57:54.095274"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.095902"], ["id", 355]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 355], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 355], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 355], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 34ms (Views: 18.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$eNd8PD9h6sn3hkuQKoM3s.xsCPwzFsHGIpRyvqw.KQ1l4/KZVBvcm"], ["created_at", "2019-11-22 00:57:54.184287"], ["updated_at", "2019-11-22 00:57:54.184287"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:54.209111"], ["last_sign_in_at", "2019-11-22 00:57:54.209111"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.209798"], ["id", 356]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 356], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$HesTppAPbIW4UFV9WaGJQ.vH1vG9S2u41IYvcWArlL72hHvxrNr2W"], ["created_at", "2019-11-22 00:57:54.243464"], ["updated_at", "2019-11-22 00:57:54.243464"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.2ms)
Rendered users/sessions/new.html.erb within layouts/application (2.5ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ocEcuy48s7pjiCE23N3H7e6B8fsVvHX5aQ/RuniCpwCgWQQu38SRq"], ["created_at", "2019-11-22 00:57:54.295425"], ["updated_at", "2019-11-22 00:57:54.295425"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:54.314736"], ["last_sign_in_at", "2019-11-22 00:57:54.314736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.315475"], ["id", 358]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 358], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:57:54.327852"], ["updated_at", "2019-11-22 00:57:54.327852"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:54.330577"], ["updated_at", "2019-11-22 00:57:54.330577"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 311], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 358], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 358], ["room_id", 311], ["created_at", "2019-11-22 00:57:54.395728"], ["updated_at", "2019-11-22 00:57:54.395728"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 358], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 311], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (4.2ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 358], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 60ms (Views: 42.8ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (11.2ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 358], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 31ms (Views: 13.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$v5IdPqBXLg1oMD9rQjQpwecGj2xk14SkJDnnDVRWmM9u6YneMyZuW"], ["created_at", "2019-11-22 00:57:54.526530"], ["updated_at", "2019-11-22 00:57:54.526530"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:54.540349"], ["last_sign_in_at", "2019-11-22 00:57:54.540349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.540969"], ["id", 359]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 359], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:57:54.549779"], ["updated_at", "2019-11-22 00:57:54.549779"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:54.551831"], ["updated_at", "2019-11-22 00:57:54.551831"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 313], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 359], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 359], ["room_id", 313], ["created_at", "2019-11-22 00:57:54.556600"], ["updated_at", "2019-11-22 00:57:54.556600"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 359], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 313], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.9ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 359], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 359], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$TUaHfuLi9zFvF1YfmkDfjeYCd/Uj0zhAFbXSKgauR1rFQ8dGGoM2q"], ["created_at", "2019-11-22 00:57:54.585982"], ["updated_at", "2019-11-22 00:57:54.585982"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:54.599581"], ["last_sign_in_at", "2019-11-22 00:57:54.599581"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.600530"], ["id", 360]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 360], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:57:54.609367"], ["updated_at", "2019-11-22 00:57:54.609367"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:54.611395"], ["updated_at", "2019-11-22 00:57:54.611395"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 315], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 360], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 360], ["room_id", 315], ["created_at", "2019-11-22 00:57:54.616552"], ["updated_at", "2019-11-22 00:57:54.616552"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 360], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 315], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.2ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 360], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 360], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$5Y3tWAUlQQRQiJrJZzJqTu1nbASoOXR9YrjuXwCyKGjz.oGn9nSAO"], ["created_at", "2019-11-22 00:57:54.655522"], ["updated_at", "2019-11-22 00:57:54.655522"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:54.671076"], ["last_sign_in_at", "2019-11-22 00:57:54.671076"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.671722"], ["id", 361]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 361], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 00:57:54.681681"], ["updated_at", "2019-11-22 00:57:54.681681"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:54.683975"], ["updated_at", "2019-11-22 00:57:54.683975"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 317], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 361], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 361], ["room_id", 317], ["created_at", "2019-11-22 00:57:54.689218"], ["updated_at", "2019-11-22 00:57:54.689218"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 361], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 317], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.7ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 361], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.1ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 361], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$MmOWl4r97f356Vk7tBv8Ze1hBqo/NQvYae6gw0.7ICYrhkyYxAUxS"], ["created_at", "2019-11-22 00:57:54.722832"], ["updated_at", "2019-11-22 00:57:54.722832"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:54.740745"], ["last_sign_in_at", "2019-11-22 00:57:54.740745"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.741426"], ["id", 362]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 362], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:54.775322"], ["updated_at", "2019-11-22 00:57:54.775322"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 318], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 362], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 362], ["room_id", 318], ["created_at", "2019-11-22 00:57:54.782145"], ["updated_at", "2019-11-22 00:57:54.782145"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 362], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 362]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 41ms (Views: 4.9ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/140” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"140"}
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 140], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 140]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 362], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$ZsKvVOWMCtsfBRaVLnElduLPDfUwKHCpKF4F1UtF9Hokq.qSaWp.q"], ["created_at", "2019-11-22 00:57:54.851413"], ["updated_at", "2019-11-22 00:57:54.851413"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:54.866309"], ["last_sign_in_at", "2019-11-22 00:57:54.866309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.867226"], ["id", 363]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 363], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:54.876898"], ["updated_at", "2019-11-22 00:57:54.876898"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 319], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 363], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 363], ["room_id", 319], ["created_at", "2019-11-22 00:57:54.882391"], ["updated_at", "2019-11-22 00:57:54.882391"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 363], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 363]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/141” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"141"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 141], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 141]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 363], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$EpwqKlFcWA566FZp.ceb3ORZMIcsZUjsC.qwlX9/QmEvZoNpbD1LG"], ["created_at", "2019-11-22 00:57:54.916254"], ["updated_at", "2019-11-22 00:57:54.916254"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:54.931150"], ["last_sign_in_at", "2019-11-22 00:57:54.931150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.931846"], ["id", 364]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 364], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.9ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:54.949093"], ["updated_at", "2019-11-22 00:57:54.949093"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 320], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 364], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 364], ["room_id", 320], ["created_at", "2019-11-22 00:57:54.955802"], ["updated_at", "2019-11-22 00:57:54.955802"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 364], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 364]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$FcdFBeRDFBrpwYbpSEB0h.bfQ.Og1Da7Y1qprHxrdkpjojUnIOwwe"], ["created_at", "2019-11-22 00:57:54.977401"], ["updated_at", "2019-11-22 00:57:54.977401"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:54.990966"], ["last_sign_in_at", "2019-11-22 00:57:54.990966"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:54.991465"], ["id", 365]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:54 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 365], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 00:57:55.000795"], ["updated_at", "2019-11-22 00:57:55.000795"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 321], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 365], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 365], ["room_id", 321], ["created_at", "2019-11-22 00:57:55.005486"], ["updated_at", "2019-11-22 00:57:55.005486"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 365], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 365]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Al3ig2KsyeGwzGI8ERtrN.Tounk/UrPzsdLJGNCqEtYeUEHmp2p3m"], ["created_at", "2019-11-22 00:57:55.030795"], ["updated_at", "2019-11-22 00:57:55.030795"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:55.044768"], ["last_sign_in_at", "2019-11-22 00:57:55.044768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.045291"], ["id", 366]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 366], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:57:55.057483"], ["updated_at", "2019-11-22 00:57:55.057483"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:55.059606"], ["updated_at", "2019-11-22 00:57:55.059606"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 366], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 22ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started GET “/appointments/322” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"322"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 322], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '322')
Rendered appointments/show.html.erb within layouts/application (10.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 366], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 31ms (Views: 12.2ms | ActiveRecord: 1.2ms) Started POST “/appointments.322” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 366], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 322], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 366], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 366], ["room_id", 322], ["created_at", "2019-11-22 00:57:55.143358"], ["updated_at", "2019-11-22 00:57:55.143358"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 366], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3RV1c3EqjP/kLHno47QVxewAOKbAbHK0mIK3UYKLj269Ih0y4EDiO"], ["created_at", "2019-11-22 00:57:55.159855"], ["updated_at", "2019-11-22 00:57:55.159855"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:55.174410"], ["last_sign_in_at", "2019-11-22 00:57:55.174410"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.174931"], ["id", 367]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 367], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:57:55.186974"], ["updated_at", "2019-11-22 00:57:55.186974"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:55.188917"], ["updated_at", "2019-11-22 00:57:55.188917"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 367], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started GET “/appointments/324” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"324"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 324], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '324')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 367], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.9ms) Started POST “/appointments.324” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 367], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 367], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$UIwsmH.Eo30iHNgCXpQ2bOnem7VTyiULXEhrnWT6xMysnufmSDp/a"], ["created_at", "2019-11-22 00:57:55.244621"], ["updated_at", "2019-11-22 00:57:55.244621"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:55.257980"], ["last_sign_in_at", "2019-11-22 00:57:55.257980"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.258650"], ["id", 368]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 368], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:57:55.269782"], ["updated_at", "2019-11-22 00:57:55.269782"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 368], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 368], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 1.0ms) Started DELETE “/rooms/326” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"326"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 368], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 326], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 326]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 368], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$w5PZ/3FNuI6tqDl95dEIR.lw6FGQnbZHEnsXGuH9eUpN/dtdLj9XK"], ["created_at", "2019-11-22 00:57:55.318633"], ["updated_at", "2019-11-22 00:57:55.318633"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 00:57:55.320802"], ["updated_at", "2019-11-22 00:57:55.320802"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:55.347870"], ["last_sign_in_at", "2019-11-22 00:57:55.347870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.348577"], ["id", 369]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 369], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 369], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started GET “/rooms/327/edit” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"327"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 369], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 327], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/327” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"327"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 369], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 327], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 00:57:55.411084"], ["id", 327]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/327 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/rooms/327” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"327"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 369], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 327], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 2.4ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$WmSQU2qdEcpXDBYolcx2HOgxJW/XlnfBkN3QpRb/JndCOxrD4FFlS"], ["created_at", "2019-11-22 00:57:55.449969"], ["updated_at", "2019-11-22 00:57:55.449969"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:55.463455"], ["last_sign_in_at", "2019-11-22 00:57:55.463455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.464048"], ["id", 370]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 370], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:57:55.476795"], ["updated_at", "2019-11-22 00:57:55.476795"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:55.478631"], ["updated_at", "2019-11-22 00:57:55.478631"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 370], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$UUM313PX5QhK4Cr26LIROe1uC8EZY/6atLTIdJqGn0tvjcLL0cBKa"], ["created_at", "2019-11-22 00:57:55.511177"], ["updated_at", "2019-11-22 00:57:55.511177"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:55.525662"], ["last_sign_in_at", "2019-11-22 00:57:55.525662"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.526408"], ["id", 371]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 371], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 00:57:55.538930"], ["updated_at", "2019-11-22 00:57:55.538930"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 00:57:55.541086"], ["updated_at", "2019-11-22 00:57:55.541086"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 371], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$dt08DCsOS7GYuSUN3mcdyOoCMy0HnrTuruP6rjSk2fEEgEBda3DeW"], ["created_at", "2019-11-22 00:57:55.576795"], ["updated_at", "2019-11-22 00:57:55.576795"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:55.603202"], ["last_sign_in_at", "2019-11-22 00:57:55.603202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.603781"], ["id", 372]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 372], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.3ms)
Rendered users/registrations/new.html.erb within layouts/application (17.9ms)

Completed 200 OK in 113ms (Views: 111.8ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$RBUw9WdFzk9szLhFXhaeo.UjQ5iIkmr54c5HJkKvGCMopFqZI0D/m"], ["created_at", "2019-11-22 00:57:55.785281"], ["updated_at", "2019-11-22 00:57:55.785281"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 00:57:55.787202"], ["last_sign_in_at", "2019-11-22 00:57:55.787202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 00:57:55.787651"], ["id", 373]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 87ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 373], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$XzadQpFxtTejFKO1Wun1e.y3qJb2UMXRoWxGYzoynwU6C9QLkuxFK"], ["created_at", "2019-11-22 00:57:55.886399"], ["updated_at", "2019-11-22 00:57:55.886399"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 00:57:55.912401"], ["last_sign_in_at", "2019-11-22 00:57:55.912401"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 00:57:55.913000"], ["id", 374]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 374], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/users/374/edit” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"374"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 374], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.4ms) Started PUT “/users/374” for 127.0.0.1 at 2019-11-21 21:57:55 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"374"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 374], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 374], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 374], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 00:57:55.975258"], ["id", 374]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 156ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 21:57:56 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 374], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (2.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.6ms)

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$cHMY/.waWJRl3bbIHbQrVevLOo/l/IjDDBNOWME6MucfDhHgF4KSG"], ["created_at", "2019-11-22 01:07:34.389278"], ["updated_at", "2019-11-22 01:07:34.389278"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:34 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (47.7ms)
Rendered users/sessions/new.html.erb within layouts/application (617.0ms)

Completed 200 OK in 772ms (Views: 764.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:35.240940"], ["last_sign_in_at", "2019-11-22 01:07:35.240940"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:35.241633"], ["id", 375]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 165ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 375], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 65ms (Views: 46.8ms | ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 375], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 375], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 69ms (Views: 42.7ms | ActiveRecord: 3.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qVbOXTsOvcGNH85t3j97TO11yymlEyDqeydfIxeA1wMnKkVjnI85S"], ["created_at", "2019-11-22 01:07:35.561581"], ["updated_at", "2019-11-22 01:07:35.561581"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:35.576280"], ["last_sign_in_at", "2019-11-22 01:07:35.576280"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:35.576946"], ["id", 376]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 376], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 376], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 376], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 33ms (Views: 17.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$9GdlXK1ZV.KEGxzk5ptRqOOXjXVaCHm0HcwJx3q62jCCRiBghgnPC"], ["created_at", "2019-11-22 01:07:35.655460"], ["updated_at", "2019-11-22 01:07:35.655460"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:35.677816"], ["last_sign_in_at", "2019-11-22 01:07:35.677816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:35.678372"], ["id", 377]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 377], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$o3v2JJVt9RMIDf9AHb1R8.ib9xIENsLhWrN1ihea6AzjuLIb2Ruw6"], ["created_at", "2019-11-22 01:07:35.707931"], ["updated_at", "2019-11-22 01:07:35.707931"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.3ms)
Rendered users/sessions/new.html.erb within layouts/application (2.5ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$.dVhS9aAsN5Y9U6Q8NyB5uWLkrRvRQmNgJ3MuKc46nonjFLmOLrnK"], ["created_at", "2019-11-22 01:07:35.751019"], ["updated_at", "2019-11-22 01:07:35.751019"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:35.768157"], ["last_sign_in_at", "2019-11-22 01:07:35.768157"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:35.768726"], ["id", 379]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 379], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:07:35.780592"], ["updated_at", "2019-11-22 01:07:35.780592"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:35.783364"], ["updated_at", "2019-11-22 01:07:35.783364"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 333], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 379], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 379], ["room_id", 333], ["created_at", "2019-11-22 01:07:35.844439"], ["updated_at", "2019-11-22 01:07:35.844439"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 379], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 333], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 379], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 69ms (Views: 41.1ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 379], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 3.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$QMIYi1UR5F8JX/T5WYY57urVN3VwkI5oqSttnwH1wf1gASOU/q1/."], ["created_at", "2019-11-22 01:07:35.967030"], ["updated_at", "2019-11-22 01:07:35.967030"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:35.980323"], ["last_sign_in_at", "2019-11-22 01:07:35.980323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:35.980939"], ["id", 380]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 380], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:07:35.989589"], ["updated_at", "2019-11-22 01:07:35.989589"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:35.991277"], ["updated_at", "2019-11-22 01:07:35.991277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 335], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 380], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 380], ["room_id", 335], ["created_at", "2019-11-22 01:07:35.996285"], ["updated_at", "2019-11-22 01:07:35.996285"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:07:35 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 380], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 335], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.5ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 380], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 380], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$QTIeXmjZBAoy/LyhI4Y9U.FOca47prbnYF5hBURcuFg7pv7yy0bFO"], ["created_at", "2019-11-22 01:07:36.023876"], ["updated_at", "2019-11-22 01:07:36.023876"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.037127"], ["last_sign_in_at", "2019-11-22 01:07:36.037127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.037697"], ["id", 381]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 381], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:07:36.046429"], ["updated_at", "2019-11-22 01:07:36.046429"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:36.048312"], ["updated_at", "2019-11-22 01:07:36.048312"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 337], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 381], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 381], ["room_id", 337], ["created_at", "2019-11-22 01:07:36.053416"], ["updated_at", "2019-11-22 01:07:36.053416"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 381], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 337], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.9ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 381], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 381], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$a.sZet3Lr/z2cohX/Wx0YuXJf0lF2HfRIaLTuNLjMk73NVVbm8jqK"], ["created_at", "2019-11-22 01:07:36.086328"], ["updated_at", "2019-11-22 01:07:36.086328"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.099448"], ["last_sign_in_at", "2019-11-22 01:07:36.099448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.100005"], ["id", 382]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 382], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:07:36.108512"], ["updated_at", "2019-11-22 01:07:36.108512"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:36.110351"], ["updated_at", "2019-11-22 01:07:36.110351"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 339], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 382], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 382], ["room_id", 339], ["created_at", "2019-11-22 01:07:36.115349"], ["updated_at", "2019-11-22 01:07:36.115349"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 382], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 339], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.5ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 382], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 382], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$FzgC8c.3st2.qcy9cu/.iuLXtzaan2x/TLsDrEfyvGsfcZYZUAWd."], ["created_at", "2019-11-22 01:07:36.150332"], ["updated_at", "2019-11-22 01:07:36.150332"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.163225"], ["last_sign_in_at", "2019-11-22 01:07:36.163225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.163850"], ["id", 383]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 383], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 20ms (Views: 19.0ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.194999"], ["updated_at", "2019-11-22 01:07:36.194999"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 340], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 383], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 383], ["room_id", 340], ["created_at", "2019-11-22 01:07:36.200095"], ["updated_at", "2019-11-22 01:07:36.200095"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 383], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 383]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 39ms (Views: 5.2ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/149” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"149"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 149], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 149]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 383], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$6gFyVLEJ7oz65XKR9rGoM..kN6Khh4v4Sky9iaZOtA6FlkKo4bkBK"], ["created_at", "2019-11-22 01:07:36.266625"], ["updated_at", "2019-11-22 01:07:36.266625"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.281422"], ["last_sign_in_at", "2019-11-22 01:07:36.281422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.282049"], ["id", 384]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 384], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:36.293010"], ["updated_at", "2019-11-22 01:07:36.293010"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 341], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 384], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 384], ["room_id", 341], ["created_at", "2019-11-22 01:07:36.299195"], ["updated_at", "2019-11-22 01:07:36.299195"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 384], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 384]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/150” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"150"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 150], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 150]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 384], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$6Q9rS8sRj0ak.mYJCKPuzu38aNEgyYDgz9BvvlUwmLT2nEuqokk3a"], ["created_at", "2019-11-22 01:07:36.330985"], ["updated_at", "2019-11-22 01:07:36.330985"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.345086"], ["last_sign_in_at", "2019-11-22 01:07:36.345086"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.345820"], ["id", 385]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 385], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.360968"], ["updated_at", "2019-11-22 01:07:36.360968"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 342], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 385], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 385], ["room_id", 342], ["created_at", "2019-11-22 01:07:36.367466"], ["updated_at", "2019-11-22 01:07:36.367466"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 385], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 385]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$7HVNXEf841/9UuQIX4IbHOl8Od6u8uRtb9oxjoehZIUJ/t5lpBcGS"], ["created_at", "2019-11-22 01:07:36.389132"], ["updated_at", "2019-11-22 01:07:36.389132"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.404533"], ["last_sign_in_at", "2019-11-22 01:07:36.404533"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.405237"], ["id", 386]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 386], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:07:36.420664"], ["updated_at", "2019-11-22 01:07:36.420664"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 343], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 386], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 386], ["room_id", 343], ["created_at", "2019-11-22 01:07:36.425535"], ["updated_at", "2019-11-22 01:07:36.425535"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 386], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 386]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$C4KRrKek5h2qzvxUoItK2uyw/a4tv7VqXOtAd2peswn9zSFEDYBFC"], ["created_at", "2019-11-22 01:07:36.446100"], ["updated_at", "2019-11-22 01:07:36.446100"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.459626"], ["last_sign_in_at", "2019-11-22 01:07:36.459626"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.460202"], ["id", 387]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 387], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:07:36.471185"], ["updated_at", "2019-11-22 01:07:36.471185"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.472811"], ["updated_at", "2019-11-22 01:07:36.472811"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 387], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 22ms (Views: 3.4ms | ActiveRecord: 0.7ms) Started GET “/appointments/344” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"344"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 344], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '344')
Rendered appointments/show.html.erb within layouts/application (10.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 387], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 30ms (Views: 12.1ms | ActiveRecord: 1.2ms) Started POST “/appointments.344” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 387], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 344], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 387], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 387], ["room_id", 344], ["created_at", "2019-11-22 01:07:36.550388"], ["updated_at", "2019-11-22 01:07:36.550388"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 387], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$BTrF6Sv8sDe5T/vvNeIV6u.KIhBMPFOw44v4PZsTERhygN1AARax6"], ["created_at", "2019-11-22 01:07:36.565937"], ["updated_at", "2019-11-22 01:07:36.565937"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.578891"], ["last_sign_in_at", "2019-11-22 01:07:36.578891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.579506"], ["id", 388]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 388], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:07:36.590290"], ["updated_at", "2019-11-22 01:07:36.590290"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.592078"], ["updated_at", "2019-11-22 01:07:36.592078"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 388], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms) Started GET “/appointments/346” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"346"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 346], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '346')
Rendered appointments/show.html.erb within layouts/application (1.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 388], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 1.0ms) Started POST “/appointments.346” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 388], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 388], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$lEL/YOz.6tJIAMpu/iy0leC4OOej8uLYLPKsQ6uCTdXTP5/d2ZRAe"], ["created_at", "2019-11-22 01:07:36.639245"], ["updated_at", "2019-11-22 01:07:36.639245"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.652701"], ["last_sign_in_at", "2019-11-22 01:07:36.652701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.653355"], ["id", 389]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 389], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:07:36.667735"], ["updated_at", "2019-11-22 01:07:36.667735"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 389], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 389], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.9ms) Started DELETE “/rooms/348” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"348"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 389], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 348], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 348]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 389], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Be1pUYPZkP8kp1CifzboauMKeGEXCe7okz9gyvjaP15c05mFkRpRe"], ["created_at", "2019-11-22 01:07:36.707054"], ["updated_at", "2019-11-22 01:07:36.707054"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:07:36.709146"], ["updated_at", "2019-11-22 01:07:36.709146"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.5ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.732585"], ["last_sign_in_at", "2019-11-22 01:07:36.732585"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.733201"], ["id", 390]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 390], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 390], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started GET “/rooms/349/edit” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"349"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 390], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 349], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 3.5ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/349” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"349"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 390], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 349], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 01:07:36.791201"], ["id", 349]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/349 Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/rooms/349” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"349"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 390], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 349], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Q1hYTi.ONHX3kAlAymrEJ.1me9udd5MrhI9noPJgW/VeNGRxUNdGG"], ["created_at", "2019-11-22 01:07:36.827482"], ["updated_at", "2019-11-22 01:07:36.827482"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.840695"], ["last_sign_in_at", "2019-11-22 01:07:36.840695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.841264"], ["id", 391]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 391], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:07:36.852716"], ["updated_at", "2019-11-22 01:07:36.852716"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.854716"], ["updated_at", "2019-11-22 01:07:36.854716"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 391], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$XRPu8T5HMVsiVcI.MouMJOw8dK36c8XuJ5dNDqLl0TO8m0tHmnGGK"], ["created_at", "2019-11-22 01:07:36.879836"], ["updated_at", "2019-11-22 01:07:36.879836"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.893126"], ["last_sign_in_at", "2019-11-22 01:07:36.893126"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.893727"], ["id", 392]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 392], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:07:36.908999"], ["updated_at", "2019-11-22 01:07:36.908999"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:07:36.910934"], ["updated_at", "2019-11-22 01:07:36.910934"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 392], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$XJYF1LsbvJovchn9qLLXSue6wYqDC/s85crWNZnZJPog/Kp8PiWzO"], ["created_at", "2019-11-22 01:07:36.935416"], ["updated_at", "2019-11-22 01:07:36.935416"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:36.958541"], ["last_sign_in_at", "2019-11-22 01:07:36.958541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:36.959112"], ["id", 393]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 393], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 22:07:36 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.3ms)
Rendered users/registrations/new.html.erb within layouts/application (17.5ms)

Completed 200 OK in 108ms (Views: 107.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$jnv4mWBELYxkkYMhUA1eJuW3P7NLfE73Y1hWVkHQIsoXk9Ujiq71u"], ["created_at", "2019-11-22 01:07:37.127532"], ["updated_at", "2019-11-22 01:07:37.127532"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:07:37.129480"], ["last_sign_in_at", "2019-11-22 01:07:37.129480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:07:37.130101"], ["id", 394]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 85ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 394], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$0UMgE7/95HFOtcRT2mkTi.NOnpQlTSOb3wh2UoHsKTn4u7IuLG7J6"], ["created_at", "2019-11-22 01:07:37.224850"], ["updated_at", "2019-11-22 01:07:37.224850"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:07:37.248089"], ["last_sign_in_at", "2019-11-22 01:07:37.248089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:07:37.248682"], ["id", 395]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 395], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/users/395/edit” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"395"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 395], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 23ms (Views: 21.6ms | ActiveRecord: 0.4ms) Started PUT “/users/395” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"395"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 395], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 395], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 395], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 01:07:37.306273"], ["id", 395]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 154ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:07:37 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 395], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$8F4DLDAmxTVwb2nbCl3yGuRxP8DF76/fvkVZJlHb/bT.q6fKEqkP6"], ["created_at", "2019-11-22 01:10:59.424433"], ["updated_at", "2019-11-22 01:10:59.424433"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:10:59 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (45.6ms)
Rendered users/sessions/new.html.erb within layouts/application (330.6ms)

Completed 200 OK in 485ms (Views: 478.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:10:59 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:10:59.993604"], ["last_sign_in_at", "2019-11-22 01:10:59.993604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:10:59.994245"], ["id", 396]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 159ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 396], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 53ms (Views: 34.8ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 396], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by RoomsController#new as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 396], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 69ms (Views: 42.2ms | ActiveRecord: 3.4ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 396], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:11:00.309251"], ["updated_at", "2019-11-22 01:11:00.309251"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 396], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qDzzst0GEe3rVSc3cJCRYONYCTxZlrEKSuU.nzEMkUqqyrL7a2wzO"], ["created_at", "2019-11-22 01:11:00.327612"], ["updated_at", "2019-11-22 01:11:00.327612"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:00.343737"], ["last_sign_in_at", "2019-11-22 01:11:00.343737"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.344287"], ["id", 397]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 397], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 397], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 397], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 397], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:11:00.378517"], ["updated_at", "2019-11-22 01:11:00.378517"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 397], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.1ms)

Completed 200 OK in 39ms (Views: 22.3ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$WSbr1cVOfnRQS8KFtBedCujQC3gSDZMaQto6FFh7xoYOrAGZ0xx8C"], ["created_at", "2019-11-22 01:11:00.452875"], ["updated_at", "2019-11-22 01:11:00.452875"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:00.479483"], ["last_sign_in_at", "2019-11-22 01:11:00.479483"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.480036"], ["id", 398]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 398], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.6ms)

Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$q49wwIMZYpIUn.hjCxI9DORt9LOHDGdNAEPp4.xrScPIdYSfkrY2y"], ["created_at", "2019-11-22 01:11:00.510474"], ["updated_at", "2019-11-22 01:11:00.510474"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.4ms)
Rendered users/sessions/new.html.erb within layouts/application (2.5ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$V6zjnu2Kogty.eX0cWl6SOn0O0zP5jSnkFtbHfeuP0XOU18lbtjPO"], ["created_at", "2019-11-22 01:11:00.559086"], ["updated_at", "2019-11-22 01:11:00.559086"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:00.577046"], ["last_sign_in_at", "2019-11-22 01:11:00.577046"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.577599"], ["id", 400]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 400], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:11:00.589257"], ["updated_at", "2019-11-22 01:11:00.589257"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:00.591194"], ["updated_at", "2019-11-22 01:11:00.591194"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 357], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 400], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 400], ["room_id", 357], ["created_at", "2019-11-22 01:11:00.659445"], ["updated_at", "2019-11-22 01:11:00.659445"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 400], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 357], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.8ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 400], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 58ms (Views: 41.2ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 400], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$rM1BWBs2swJIhNW.XPK02eK2UjReKhpBKj1rqc5GxMegCH5V1fcBW"], ["created_at", "2019-11-22 01:11:00.776175"], ["updated_at", "2019-11-22 01:11:00.776175"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:00.790031"], ["last_sign_in_at", "2019-11-22 01:11:00.790031"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.790562"], ["id", 401]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 401], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:11:00.799063"], ["updated_at", "2019-11-22 01:11:00.799063"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:00.801144"], ["updated_at", "2019-11-22 01:11:00.801144"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 359], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 401], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 401], ["room_id", 359], ["created_at", "2019-11-22 01:11:00.806289"], ["updated_at", "2019-11-22 01:11:00.806289"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 401], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 359], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.8ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 401], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 401], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$wmrCsP4W1C.xOu1zYyvz7eD9w0u1wv.prnUVsqYfrxAuxZHCztMaS"], ["created_at", "2019-11-22 01:11:00.835500"], ["updated_at", "2019-11-22 01:11:00.835500"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:00.849091"], ["last_sign_in_at", "2019-11-22 01:11:00.849091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.849674"], ["id", 402]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 402], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:11:00.858798"], ["updated_at", "2019-11-22 01:11:00.858798"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:00.860711"], ["updated_at", "2019-11-22 01:11:00.860711"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 361], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 402], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 402], ["room_id", 361], ["created_at", "2019-11-22 01:11:00.865866"], ["updated_at", "2019-11-22 01:11:00.865866"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 402], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 361], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 402], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 402], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$mEblg6VQSRWaC8CVU3Wkk.th4YvfoiISVd8Rjw4eaiLbwbEHrRDXG"], ["created_at", "2019-11-22 01:11:00.904721"], ["updated_at", "2019-11-22 01:11:00.904721"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:00.918764"], ["last_sign_in_at", "2019-11-22 01:11:00.918764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.919435"], ["id", 403]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 403], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:11:00.928661"], ["updated_at", "2019-11-22 01:11:00.928661"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:00.930662"], ["updated_at", "2019-11-22 01:11:00.930662"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 363], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 403], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 403], ["room_id", 363], ["created_at", "2019-11-22 01:11:00.936205"], ["updated_at", "2019-11-22 01:11:00.936205"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 403], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 363], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.7ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 403], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 403], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$WjTBm8PCBM2yipqGPh5KmuE61Yjm3A7Tvo4.YCwa8foT1Z.0iPJIC"], ["created_at", "2019-11-22 01:11:00.973038"], ["updated_at", "2019-11-22 01:11:00.973038"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:00.988497"], ["last_sign_in_at", "2019-11-22 01:11:00.988497"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:00.989072"], ["id", 404]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:00 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 404], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.026495"], ["updated_at", "2019-11-22 01:11:01.026495"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 364], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 404], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 404], ["room_id", 364], ["created_at", "2019-11-22 01:11:01.034134"], ["updated_at", "2019-11-22 01:11:01.034134"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 404], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 404]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 41ms (Views: 4.5ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/158” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"158"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 158], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 158]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 404], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$56q5MoSz4DrBwVLB5YMgk.0Ahs7zg0vwR/c9wIz2lLF2iKOp0xtxy"], ["created_at", "2019-11-22 01:11:01.102463"], ["updated_at", "2019-11-22 01:11:01.102463"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:01.116659"], ["last_sign_in_at", "2019-11-22 01:11:01.116659"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.117817"], ["id", 405]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 405], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:01.128391"], ["updated_at", "2019-11-22 01:11:01.128391"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 365], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 405], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 405], ["room_id", 365], ["created_at", "2019-11-22 01:11:01.135235"], ["updated_at", "2019-11-22 01:11:01.135235"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 405], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 405]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/159” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"159"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 159], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 159]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 405], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$9ns6lhi0jlLBIr8sMzRH6uU7twJmNamyXSi3Kw.VTpSKNc6hqMoQW"], ["created_at", "2019-11-22 01:11:01.172718"], ["updated_at", "2019-11-22 01:11:01.172718"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:01.187663"], ["last_sign_in_at", "2019-11-22 01:11:01.187663"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.188372"], ["id", 406]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 406], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.206482"], ["updated_at", "2019-11-22 01:11:01.206482"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 366], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 406], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 406], ["room_id", 366], ["created_at", "2019-11-22 01:11:01.211940"], ["updated_at", "2019-11-22 01:11:01.211940"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 406], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 406]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$zTBgA4BYRz2EaVvBguyCK.N4NybsISh0PfNUQIC4h1k.RAkE.oj3i"], ["created_at", "2019-11-22 01:11:01.233180"], ["updated_at", "2019-11-22 01:11:01.233180"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:01.249894"], ["last_sign_in_at", "2019-11-22 01:11:01.249894"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.250463"], ["id", 407]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 407], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:11:01.259796"], ["updated_at", "2019-11-22 01:11:01.259796"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 367], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 407], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 407], ["room_id", 367], ["created_at", "2019-11-22 01:11:01.264438"], ["updated_at", "2019-11-22 01:11:01.264438"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 407], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 407]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$7Tnhs2NpwPkPPQ0rg/OBfuIlAxmZn5zvN/MW1fM1b7fZFYu47L43G"], ["created_at", "2019-11-22 01:11:01.286826"], ["updated_at", "2019-11-22 01:11:01.286826"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:01.299873"], ["last_sign_in_at", "2019-11-22 01:11:01.299873"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.300598"], ["id", 408]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 408], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:11:01.312578"], ["updated_at", "2019-11-22 01:11:01.312578"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.314120"], ["updated_at", "2019-11-22 01:11:01.314120"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 408], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started GET “/appointments/368” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"368"}
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 368], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '368')
Rendered appointments/show.html.erb within layouts/application (9.8ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 408], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 30ms (Views: 11.7ms | ActiveRecord: 1.5ms) Started POST “/appointments.368” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 408], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 368], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 408], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 408], ["room_id", 368], ["created_at", "2019-11-22 01:11:01.394838"], ["updated_at", "2019-11-22 01:11:01.394838"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 408], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$G6KqCjpuGe00m/4aa0bOKeC5N1/7.X3Et/FjceJceAb3p6eETnxFO"], ["created_at", "2019-11-22 01:11:01.411702"], ["updated_at", "2019-11-22 01:11:01.411702"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:01.425691"], ["last_sign_in_at", "2019-11-22 01:11:01.425691"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.426244"], ["id", 409]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 409], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:11:01.438532"], ["updated_at", "2019-11-22 01:11:01.438532"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.440318"], ["updated_at", "2019-11-22 01:11:01.440318"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 409], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.8ms) Started GET “/appointments/370” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"370"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 370], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '370')
Rendered appointments/show.html.erb within layouts/application (1.7ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 409], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 1.2ms) Started POST “/appointments.370” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 409], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 409], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$JLSfK7pp4teMr8CMlYcxouqLCnm3EFu5QR4/ipQKuyZjRWWPJhJWK"], ["created_at", "2019-11-22 01:11:01.500687"], ["updated_at", "2019-11-22 01:11:01.500687"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (6.0ms)

Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:01.521250"], ["last_sign_in_at", "2019-11-22 01:11:01.521250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.522084"], ["id", 410]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 410], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:11:01.534496"], ["updated_at", "2019-11-22 01:11:01.534496"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 410], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 410], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.9ms) Started DELETE “/rooms/372” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"372"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 410], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 372], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 372]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 410], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$dnYEXzjoQ6RWqgm9K8XmyurSVsnKkj6iU5krmUUUn3yXqIZnW5Iyu"], ["created_at", "2019-11-22 01:11:01.582067"], ["updated_at", "2019-11-22 01:11:01.582067"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:11:01.584301"], ["updated_at", "2019-11-22 01:11:01.584301"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:01.608959"], ["last_sign_in_at", "2019-11-22 01:11:01.608959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.609524"], ["id", 411]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 411], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 411], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms) Started GET “/rooms/373/edit” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"373"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 411], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 373], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 3.3ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/373” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"373"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 411], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 373], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 01:11:01.670314"], ["id", 373]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/373 Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/rooms/373” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"373"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 411], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 373], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$CDUmFC7XnGwG1S80GUkV9efLHYWWYL8jxs0aBZtMIK1cf1TF.xzn."], ["created_at", "2019-11-22 01:11:01.709524"], ["updated_at", "2019-11-22 01:11:01.709524"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:01.723300"], ["last_sign_in_at", "2019-11-22 01:11:01.723300"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.723875"], ["id", 412]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 412], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:11:01.736094"], ["updated_at", "2019-11-22 01:11:01.736094"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.738269"], ["updated_at", "2019-11-22 01:11:01.738269"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 412], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$sq6I6FhpK6hAP4EGaVaAgu8sNDTsRkBoQEy3KNiKryY.d7QLXHtqy"], ["created_at", "2019-11-22 01:11:01.769622"], ["updated_at", "2019-11-22 01:11:01.769622"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (4.3ms)
Rendered users/sessions/new.html.erb within layouts/application (5.3ms)

Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:01.788240"], ["last_sign_in_at", "2019-11-22 01:11:01.788240"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.788833"], ["id", 413]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 413], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:11:01.800365"], ["updated_at", "2019-11-22 01:11:01.800365"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:11:01.802575"], ["updated_at", "2019-11-22 01:11:01.802575"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 413], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$2Q.jynUsk1hXhM9VhqYKyuxxfxj9nVVjpzTIziPhx6Ffk8dS5HyOK"], ["created_at", "2019-11-22 01:11:01.834146"], ["updated_at", "2019-11-22 01:11:01.834146"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:01.860715"], ["last_sign_in_at", "2019-11-22 01:11:01.860715"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:01.861337"], ["id", 414]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 414], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 22:11:01 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.1ms)
Rendered users/registrations/new.html.erb within layouts/application (17.3ms)

Completed 200 OK in 108ms (Views: 107.0ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$kH8RN1oRkhz/KENEYGcsyOqyk0scbNU3CniZcP.3.bYKxFu2etiJK"], ["created_at", "2019-11-22 01:11:02.037951"], ["updated_at", "2019-11-22 01:11:02.037951"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:11:02.039883"], ["last_sign_in_at", "2019-11-22 01:11:02.039883"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:11:02.040372"], ["id", 415]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 84ms (ActiveRecord: 2.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 415], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$ynjUzJMlSLlvEdJm5jB8yuZV0FS.RHk29E8tQRtCHxyjCg6jGqS1q"], ["created_at", "2019-11-22 01:11:02.136537"], ["updated_at", "2019-11-22 01:11:02.136537"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:11:02.163019"], ["last_sign_in_at", "2019-11-22 01:11:02.163019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:11:02.163717"], ["id", 416]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 416], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/users/416/edit” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"416"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 416], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.5ms) Started PUT “/users/416” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"416"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 416], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 416], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 416], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 01:11:02.231759"], ["id", 416]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 166ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:11:02 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 416], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$GU76.OAOqwIG8EWkVQ1F0.jTOziefkKvQ5uGvFQLt0Uu/OVygNJKC"], ["created_at", "2019-11-22 01:12:15.247927"], ["updated_at", "2019-11-22 01:12:15.247927"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:15 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (47.3ms)
Rendered users/sessions/new.html.erb within layouts/application (335.8ms)

Completed 200 OK in 491ms (Views: 483.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:15 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:15.821070"], ["last_sign_in_at", "2019-11-22 01:12:15.821070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:15.821806"], ["id", 417]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 162ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:15 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 417], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 53ms (Views: 34.5ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 417], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (14.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 17ms (Views: 16.0ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 417], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 72ms (Views: 43.6ms | ActiveRecord: 3.1ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 417], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:12:16.144053"], ["updated_at", "2019-11-22 01:12:16.144053"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 417], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$w0YjchHm1hCmNKy.ib26/.81dhr0rD/ZuT5N6X1pMdCd.rlMVKKPK"], ["created_at", "2019-11-22 01:12:16.162921"], ["updated_at", "2019-11-22 01:12:16.162921"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.5ms)
Rendered users/sessions/new.html.erb within layouts/application (2.7ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:16.180676"], ["last_sign_in_at", "2019-11-22 01:12:16.180676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.181249"], ["id", 418]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 418], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 418], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 418], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 418], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:12:16.216276"], ["updated_at", "2019-11-22 01:12:16.216276"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 418], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.0ms)

Completed 200 OK in 37ms (Views: 20.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$JoVZs6PhG62gDU7r/ksxeugYqxcFOoDul2gHBuKL8.CTwsFdpCJUW"], ["created_at", "2019-11-22 01:12:16.288581"], ["updated_at", "2019-11-22 01:12:16.288581"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.2ms)
Rendered users/sessions/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:16.314281"], ["last_sign_in_at", "2019-11-22 01:12:16.314281"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.315073"], ["id", 419]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 419], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.5ms)

Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$MXJYFe3FwesAA7X9jK6J1uLN6I24IYBSLakQT6wYO5he5NfgTafxe"], ["created_at", "2019-11-22 01:12:16.345718"], ["updated_at", "2019-11-22 01:12:16.345718"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.5ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$052mXcm2tTZ2QLgFTmC46eTEXSqzaEG12QL4uTzRAI3zKvEj274xG"], ["created_at", "2019-11-22 01:12:16.394833"], ["updated_at", "2019-11-22 01:12:16.394833"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.2ms)
Rendered users/sessions/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:16.413147"], ["last_sign_in_at", "2019-11-22 01:12:16.413147"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.414054"], ["id", 421]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 421], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:12:16.425884"], ["updated_at", "2019-11-22 01:12:16.425884"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:16.428101"], ["updated_at", "2019-11-22 01:12:16.428101"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 381], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 421], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 421], ["room_id", 381], ["created_at", "2019-11-22 01:12:16.497097"], ["updated_at", "2019-11-22 01:12:16.497097"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 421], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 381], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.7ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 421], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 59ms (Views: 41.6ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 421], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$86.z5Sc0J4nMg4Nv71EEl.XMRW3PPBFun0W9h65Htr2EjrtbULSx."], ["created_at", "2019-11-22 01:12:16.616822"], ["updated_at", "2019-11-22 01:12:16.616822"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:16.630606"], ["last_sign_in_at", "2019-11-22 01:12:16.630606"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.631160"], ["id", 422]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 422], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:12:16.640588"], ["updated_at", "2019-11-22 01:12:16.640588"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:16.642471"], ["updated_at", "2019-11-22 01:12:16.642471"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 383], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 422], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 422], ["room_id", 383], ["created_at", "2019-11-22 01:12:16.647643"], ["updated_at", "2019-11-22 01:12:16.647643"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 422], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 383], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 422], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 422], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$B.Xlb7lZNz6FIi6afXFYRODp7fdrswrP3emdcO/OF2ZhbYJgDk.y6"], ["created_at", "2019-11-22 01:12:16.677752"], ["updated_at", "2019-11-22 01:12:16.677752"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:16.693414"], ["last_sign_in_at", "2019-11-22 01:12:16.693414"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.694064"], ["id", 423]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 423], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:12:16.703296"], ["updated_at", "2019-11-22 01:12:16.703296"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:16.705302"], ["updated_at", "2019-11-22 01:12:16.705302"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 385], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 423], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 423], ["room_id", 385], ["created_at", "2019-11-22 01:12:16.710471"], ["updated_at", "2019-11-22 01:12:16.710471"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 423], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 385], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 423], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 423], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$VCrlWrHFleFaWzN5hI4Rd.mu4QEBp5dC.ALsKpvXVLA.8Xb12oD86"], ["created_at", "2019-11-22 01:12:16.749131"], ["updated_at", "2019-11-22 01:12:16.749131"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:16.763642"], ["last_sign_in_at", "2019-11-22 01:12:16.763642"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.764233"], ["id", 424]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 424], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:12:16.774042"], ["updated_at", "2019-11-22 01:12:16.774042"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:16.776150"], ["updated_at", "2019-11-22 01:12:16.776150"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 387], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 424], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 424], ["room_id", 387], ["created_at", "2019-11-22 01:12:16.781254"], ["updated_at", "2019-11-22 01:12:16.781254"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 424], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 387], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 424], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 11ms (Views: 4.5ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 424], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$GUVARoLd6PTRsvnyDiWCVeGPfa2mbDkYR4tu9WwOnPzwg.86G8N1u"], ["created_at", "2019-11-22 01:12:16.819771"], ["updated_at", "2019-11-22 01:12:16.819771"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:16.833107"], ["last_sign_in_at", "2019-11-22 01:12:16.833107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.833664"], ["id", 425]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 425], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:16.872101"], ["updated_at", "2019-11-22 01:12:16.872101"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 388], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 425], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 425], ["room_id", 388], ["created_at", "2019-11-22 01:12:16.878525"], ["updated_at", "2019-11-22 01:12:16.878525"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 425], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 425]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 41ms (Views: 4.5ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/167” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"167"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 167], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 167]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 425], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$sFp3fpilFN6XJUd.T7ilxeTahA02r.q18uWCONRxRE.DeRqJKMaN."], ["created_at", "2019-11-22 01:12:16.945735"], ["updated_at", "2019-11-22 01:12:16.945735"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:16.960829"], ["last_sign_in_at", "2019-11-22 01:12:16.960829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:16.961460"], ["id", 426]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 426], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:16.972239"], ["updated_at", "2019-11-22 01:12:16.972239"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 389], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 426], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 426], ["room_id", 389], ["created_at", "2019-11-22 01:12:16.977601"], ["updated_at", "2019-11-22 01:12:16.977601"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 426], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 426]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/168” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"168"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 168], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 168]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:16 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 426], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$kvwXXJE/3FEtfZUxdlcM.uqo1w6xr9Y0Ll59olFFHCgfVkyXx8/1O"], ["created_at", "2019-11-22 01:12:17.012254"], ["updated_at", "2019-11-22 01:12:17.012254"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:17.027548"], ["last_sign_in_at", "2019-11-22 01:12:17.027548"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.028316"], ["id", 427]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 427], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:17.045934"], ["updated_at", "2019-11-22 01:12:17.045934"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 390], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 427], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 427], ["room_id", 390], ["created_at", "2019-11-22 01:12:17.051261"], ["updated_at", "2019-11-22 01:12:17.051261"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 427], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 427]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$pKmXpKwQ/.OiZD.wubB8qe0C1mfJSWwuGJRMo/RAQ7cGDTnqVNh1K"], ["created_at", "2019-11-22 01:12:17.072012"], ["updated_at", "2019-11-22 01:12:17.072012"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:17.089070"], ["last_sign_in_at", "2019-11-22 01:12:17.089070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.089574"], ["id", 428]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 428], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:12:17.098407"], ["updated_at", "2019-11-22 01:12:17.098407"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 391], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 428], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 428], ["room_id", 391], ["created_at", "2019-11-22 01:12:17.103314"], ["updated_at", "2019-11-22 01:12:17.103314"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 428], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 428]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9fthMjkdFEZj4/j6GY.G9eQ68JPMPF4W3znqkkCoyRSMmsz0fXdkO"], ["created_at", "2019-11-22 01:12:17.125393"], ["updated_at", "2019-11-22 01:12:17.125393"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:17.140426"], ["last_sign_in_at", "2019-11-22 01:12:17.140426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.141068"], ["id", 429]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 429], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:12:17.153878"], ["updated_at", "2019-11-22 01:12:17.153878"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:17.155724"], ["updated_at", "2019-11-22 01:12:17.155724"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 429], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started GET “/appointments/392” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"392"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 392], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '392')
Rendered appointments/show.html.erb within layouts/application (10.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 429], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 30ms (Views: 12.1ms | ActiveRecord: 1.2ms) Started POST “/appointments.392” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 429], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 392], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 429], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 429], ["room_id", 392], ["created_at", "2019-11-22 01:12:17.238249"], ["updated_at", "2019-11-22 01:12:17.238249"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 429], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$NHp4G8hX1kbq1Bp0KAYoW.2yc9Oi2UBbQ/z5MLJqFH1QrGQO2kbI."], ["created_at", "2019-11-22 01:12:17.256817"], ["updated_at", "2019-11-22 01:12:17.256817"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:17.270589"], ["last_sign_in_at", "2019-11-22 01:12:17.270589"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.271231"], ["id", 430]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 430], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:12:17.283731"], ["updated_at", "2019-11-22 01:12:17.283731"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:17.285540"], ["updated_at", "2019-11-22 01:12:17.285540"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 430], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/394” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"394"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 394], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '394')
Rendered appointments/show.html.erb within layouts/application (1.8ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 430], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 1.1ms) Started POST “/appointments.394” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 430], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 430], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$iJqOvVhyZyi0jmOOmJM0yuJpYdp6qTF1MQWAjTkW1u2NLJTVotgn2"], ["created_at", "2019-11-22 01:12:17.340763"], ["updated_at", "2019-11-22 01:12:17.340763"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (4.4ms)
Rendered users/sessions/new.html.erb within layouts/application (5.4ms)

Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:17.358091"], ["last_sign_in_at", "2019-11-22 01:12:17.358091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.358708"], ["id", 431]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 431], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:12:17.369464"], ["updated_at", "2019-11-22 01:12:17.369464"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 431], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 431], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.9ms) Started DELETE “/rooms/396” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"396"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 431], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 396], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 396]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 431], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$ABhg3H5DL9fDdJ53SpppkeuL5TfXdfvs7EchI3hs3P3CZi1j9ZYly"], ["created_at", "2019-11-22 01:12:17.414069"], ["updated_at", "2019-11-22 01:12:17.414069"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:12:17.416842"], ["updated_at", "2019-11-22 01:12:17.416842"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:17.444290"], ["last_sign_in_at", "2019-11-22 01:12:17.444290"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.444887"], ["id", 432]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 432], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 432], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started GET “/rooms/397/edit” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"397"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 432], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 397], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started PATCH “/rooms/397” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"397"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 432], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 397], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 01:12:17.508176"], ["id", 397]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/397 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/rooms/397” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"397"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 432], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 397], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$71mgfpzRWcQWGXRI1I.x3ODIcJnuMtMrNyObPodkFICznafB7lhsG"], ["created_at", "2019-11-22 01:12:17.548611"], ["updated_at", "2019-11-22 01:12:17.548611"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:17.562412"], ["last_sign_in_at", "2019-11-22 01:12:17.562412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.562981"], ["id", 433]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 433], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:12:17.575402"], ["updated_at", "2019-11-22 01:12:17.575402"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:17.577301"], ["updated_at", "2019-11-22 01:12:17.577301"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 433], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$T3gXC1INPYIudyvkLJ1EQ.eqyBcyVIhRw7Yah3dCvIF4PYWCQQ322"], ["created_at", "2019-11-22 01:12:17.607633"], ["updated_at", "2019-11-22 01:12:17.607633"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:17.625284"], ["last_sign_in_at", "2019-11-22 01:12:17.625284"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.625804"], ["id", 434]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 434], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:12:17.636743"], ["updated_at", "2019-11-22 01:12:17.636743"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:12:17.638968"], ["updated_at", "2019-11-22 01:12:17.638968"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 434], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$iEaVdLRasWhb2Pcw6lXCOu63FlojL3x9msC1GsWuYL8MpmDxBln0m"], ["created_at", "2019-11-22 01:12:17.668813"], ["updated_at", "2019-11-22 01:12:17.668813"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.5ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:17.694198"], ["last_sign_in_at", "2019-11-22 01:12:17.694198"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.694723"], ["id", 435]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 435], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.2ms)
Rendered users/registrations/new.html.erb within layouts/application (17.8ms)

Completed 200 OK in 109ms (Views: 108.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$sHDj8OznpcUzQ0YdJKI51OGu4.LE5ZHzaZMVRZoaeZHlf6wdjpEmu"], ["created_at", "2019-11-22 01:12:17.871740"], ["updated_at", "2019-11-22 01:12:17.871740"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:12:17.873388"], ["last_sign_in_at", "2019-11-22 01:12:17.873388"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:12:17.873872"], ["id", 436]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 85ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 436], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$qbvsm0FkAcaV7xK7FOKnx.cDUpiZpZr/3hvf5filqVYhKGs34TTFW"], ["created_at", "2019-11-22 01:12:17.971028"], ["updated_at", "2019-11-22 01:12:17.971028"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:12:17 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:12:17.997935"], ["last_sign_in_at", "2019-11-22 01:12:17.997935"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:12:17.998514"], ["id", 437]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:18 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 437], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/users/437/edit” for 127.0.0.1 at 2019-11-21 22:12:18 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"437"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 437], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.5ms) Started PUT “/users/437” for 127.0.0.1 at 2019-11-21 22:12:18 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"437"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 437], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 437], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 437], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 01:12:18.065842"], ["id", 437]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 182ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:12:18 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 437], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qdzvcTFOY.ChKcgOLapeouKgwKd1ODX79AkqlRMyTK92ufn.4ZY7."], ["created_at", "2019-11-22 01:14:20.432863"], ["updated_at", "2019-11-22 01:14:20.432863"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:20 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (49.3ms)
Rendered users/sessions/new.html.erb within layouts/application (9149.2ms)

Completed 200 OK in 9300ms (Views: 9293.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:29 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:29.819162"], ["last_sign_in_at", "2019-11-22 01:14:29.819162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:29.819978"], ["id", 438]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 163ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:29 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 438], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 53ms (Views: 35.2ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 438], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 438], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 70ms (Views: 42.4ms | ActiveRecord: 3.3ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 438], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (1.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:14:30.126846"], ["updated_at", "2019-11-22 01:14:30.126846"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 438], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$4yh5ZGFu9gtNM4S1S0nSNOUgeJDNBqVYDeVXWP3BK3b9lHsndcAHi"], ["created_at", "2019-11-22 01:14:30.144515"], ["updated_at", "2019-11-22 01:14:30.144515"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:30.159982"], ["last_sign_in_at", "2019-11-22 01:14:30.159982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.160544"], ["id", 439]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 439], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 439], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#new as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 439], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 439], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-11-22 01:14:30.195193"], ["updated_at", "2019-11-22 01:14:30.195193"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 439], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 34ms (Views: 18.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$r6rfE5UTWf0TEKxtRxv6weTH792pNTRihy50nF10kNs3J4xHGkfw2"], ["created_at", "2019-11-22 01:14:30.261437"], ["updated_at", "2019-11-22 01:14:30.261437"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:30.286012"], ["last_sign_in_at", "2019-11-22 01:14:30.286012"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.286658"], ["id", 440]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 440], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$GZ88AY5v1s8oNdfW42bxcuDFqEDxmOID3sTMPzdmIh5BIOXxxaLpK"], ["created_at", "2019-11-22 01:14:30.311455"], ["updated_at", "2019-11-22 01:14:30.311455"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$lz.SyYOBB8EI0cTB1CKnTug/e5e/uEUZtP7iDevwUZJWcliViYXkO"], ["created_at", "2019-11-22 01:14:30.352555"], ["updated_at", "2019-11-22 01:14:30.352555"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:30.369493"], ["last_sign_in_at", "2019-11-22 01:14:30.369493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.370121"], ["id", 442]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 442], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 442], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Appointment Load (1.2ms)  SELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)  [["appointment_date", "2019-11-21 00:00:00"], ["appointment_date", "2019-11-21 23:59:59.999999"]]
Rendered today_appointments/index.html.erb within layouts/application (2.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 442], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 71ms (Views: 39.6ms | ActiveRecord: 2.8ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ms6M3YSU6nzKPST6VIxqfO9xaESL4BoBofISnGsAHFr5vrbpQlAfC"], ["created_at", "2019-11-22 01:14:30.472056"], ["updated_at", "2019-11-22 01:14:30.472056"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:30.489173"], ["last_sign_in_at", "2019-11-22 01:14:30.489173"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.489832"], ["id", 443]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 443], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 443], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.4ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 443], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"foobar", "location"=>"fooland"}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 443], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "foobar"], ["location", "fooland"], ["created_at", "2019-11-22 01:14:30.529967"], ["updated_at", "2019-11-22 01:14:30.529967"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 443], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 443], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 1.0ms) Started GET “/appointments/404” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"404"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 404], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '404')
Rendered appointments/show.html.erb within layouts/application (9.7ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 443], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 70ms (Views: 47.5ms | ActiveRecord: 1.5ms) Started POST “/appointments.404” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-21", "start_time"=>"18:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 443], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 404], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 443], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-21 00:00:00"], ["start_time", "18:00:00"], ["status", 1], ["user_id", 443], ["room_id", 404], ["created_at", "2019-11-22 01:14:30.698718"], ["updated_at", "2019-11-22 01:14:30.698718"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 38ms (ActiveRecord: 3.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 443], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)  [["appointment_date", "2019-11-21 00:00:00"], ["appointment_date", "2019-11-21 23:59:59.999999"]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 404], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 443], ["LIMIT", 1]]
Rendered today_appointments/index.html.erb within layouts/application (2.5ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 443], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$VG47I27.vBidtO.yvhnuiOpxWpCIIcJSe4L7XvmRGPOnpDKkD2sf."], ["created_at", "2019-11-22 01:14:30.739491"], ["updated_at", "2019-11-22 01:14:30.739491"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:30.755052"], ["last_sign_in_at", "2019-11-22 01:14:30.755052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.755821"], ["id", 444]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 444], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:14:30.766128"], ["updated_at", "2019-11-22 01:14:30.766128"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:30.768140"], ["updated_at", "2019-11-22 01:14:30.768140"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 406], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 444], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 444], ["room_id", 406], ["created_at", "2019-11-22 01:14:30.777288"], ["updated_at", "2019-11-22 01:14:30.777288"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 444], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 406], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 444], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 23ms (Views: 5.2ms | ActiveRecord: 1.3ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 444], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 3.9ms | ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$knZ.ngEsZkQKvEhpb4H.luzkOsa1QLyJJObG3zbGxCr0xbOmA63NG"], ["created_at", "2019-11-22 01:14:30.848428"], ["updated_at", "2019-11-22 01:14:30.848428"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:30.863701"], ["last_sign_in_at", "2019-11-22 01:14:30.863701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.864401"], ["id", 445]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 445], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:14:30.875542"], ["updated_at", "2019-11-22 01:14:30.875542"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:30.877486"], ["updated_at", "2019-11-22 01:14:30.877486"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 408], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 445], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 445], ["room_id", 408], ["created_at", "2019-11-22 01:14:30.883628"], ["updated_at", "2019-11-22 01:14:30.883628"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 445], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 408], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 445], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 1.5ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 445], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$UZDapNEoXGJZrLFfvwNyWOZ1os/iTRBaP0iU8SlUjFqRK.yffIhhG"], ["created_at", "2019-11-22 01:14:30.918216"], ["updated_at", "2019-11-22 01:14:30.918216"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:30.933079"], ["last_sign_in_at", "2019-11-22 01:14:30.933079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:30.933817"], ["id", 446]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 446], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:14:30.944468"], ["updated_at", "2019-11-22 01:14:30.944468"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:30.946589"], ["updated_at", "2019-11-22 01:14:30.946589"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 410], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 446], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 446], ["room_id", 410], ["created_at", "2019-11-22 01:14:30.952590"], ["updated_at", "2019-11-22 01:14:30.952590"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 446], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 410], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.2ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 446], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 446], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$8g3iFXNkClKhzfL9cb6U/.P3LttyBdy6ggX21ygHzOAgNpqmKyXES"], ["created_at", "2019-11-22 01:14:30.992868"], ["updated_at", "2019-11-22 01:14:30.992868"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:30 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.008488"], ["last_sign_in_at", "2019-11-22 01:14:31.008488"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.009086"], ["id", 447]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 447], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-11-22 01:14:31.018074"], ["updated_at", "2019-11-22 01:14:31.018074"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:31.020065"], ["updated_at", "2019-11-22 01:14:31.020065"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 412], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 447], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 447], ["room_id", 412], ["created_at", "2019-11-22 01:14:31.025673"], ["updated_at", "2019-11-22 01:14:31.025673"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 447], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 412], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 447], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 1.1ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 447], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$9z1k1QaqKDQLpRyO4GXgxu0qHGGbWl3Y8l8O6G7wIrjvAwAYINxX6"], ["created_at", "2019-11-22 01:14:31.057378"], ["updated_at", "2019-11-22 01:14:31.057378"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.072474"], ["last_sign_in_at", "2019-11-22 01:14:31.072474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.073194"], ["id", 448]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 448], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.107415"], ["updated_at", "2019-11-22 01:14:31.107415"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 413], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 448], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 448], ["room_id", 413], ["created_at", "2019-11-22 01:14:31.113986"], ["updated_at", "2019-11-22 01:14:31.113986"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 448], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 448]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 37ms (Views: 4.2ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/177” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"177"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 177], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 177]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 448], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$DKcEVXzGVpG3frxumG30EuQX5srIv9d767R.Vrs/QbftqAVIfZT5O"], ["created_at", "2019-11-22 01:14:31.177035"], ["updated_at", "2019-11-22 01:14:31.177035"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.191019"], ["last_sign_in_at", "2019-11-22 01:14:31.191019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.191636"], ["id", 449]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 449], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:31.202013"], ["updated_at", "2019-11-22 01:14:31.202013"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 414], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 449], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 449], ["room_id", 414], ["created_at", "2019-11-22 01:14:31.208503"], ["updated_at", "2019-11-22 01:14:31.208503"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 449], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 449]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/178” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"178"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 178], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 178]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 449], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$V2H7ctrb94Np7l6itVV0zeWWFt.6GzD2PWGKXka9sXelXpQUYMM3G"], ["created_at", "2019-11-22 01:14:31.245798"], ["updated_at", "2019-11-22 01:14:31.245798"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.260595"], ["last_sign_in_at", "2019-11-22 01:14:31.260595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.261210"], ["id", 450]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 450], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.277348"], ["updated_at", "2019-11-22 01:14:31.277348"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 415], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 450], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["user_id", 450], ["room_id", 415], ["created_at", "2019-11-22 01:14:31.284203"], ["updated_at", "2019-11-22 01:14:31.284203"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 450], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 450]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$GPO8BR09Z5/oQyeceLdm3OSjo2myqpWBb2p.Gk2boJss2N3tbAVcW"], ["created_at", "2019-11-22 01:14:31.308653"], ["updated_at", "2019-11-22 01:14:31.308653"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.324763"], ["last_sign_in_at", "2019-11-22 01:14:31.324763"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.325550"], ["id", 451]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 451], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (3.5ms)

Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-11-22 01:14:31.339597"], ["updated_at", "2019-11-22 01:14:31.339597"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 416], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 451], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 451], ["room_id", 416], ["created_at", "2019-11-22 01:14:31.344754"], ["updated_at", "2019-11-22 01:14:31.344754"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 451], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 451]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$uEBnjMcDsjhpCjYlvFQBXOBzXKLnVQjXF5nzDJsNT5ycJu4HUlQV2"], ["created_at", "2019-11-22 01:14:31.366845"], ["updated_at", "2019-11-22 01:14:31.366845"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.381660"], ["last_sign_in_at", "2019-11-22 01:14:31.381660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.382150"], ["id", 452]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 452], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:14:31.393807"], ["updated_at", "2019-11-22 01:14:31.393807"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.395586"], ["updated_at", "2019-11-22 01:14:31.395586"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 452], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms) Started GET “/appointments/417” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"417"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 417], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '417')
Rendered appointments/show.html.erb within layouts/application (1.8ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 452], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 1.2ms) Started POST “/appointments.417” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-11-22", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 452], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 417], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 452], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-11-22 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 452], ["room_id", 417], ["created_at", "2019-11-22 01:14:31.435999"], ["updated_at", "2019-11-22 01:14:31.435999"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 452], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$YWHpemT0utPKNVZu/1DGsuRgrXcSjKwpqHNtKCF4c2xNHdXD3vr/m"], ["created_at", "2019-11-22 01:14:31.453157"], ["updated_at", "2019-11-22 01:14:31.453157"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.466215"], ["last_sign_in_at", "2019-11-22 01:14:31.466215"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.466759"], ["id", 453]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 453], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:14:31.478986"], ["updated_at", "2019-11-22 01:14:31.478986"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.480829"], ["updated_at", "2019-11-22 01:14:31.480829"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 453], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.9ms) Started GET “/appointments/419” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"419"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 419], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '419')
Rendered appointments/show.html.erb within layouts/application (1.7ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 453], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 1.3ms) Started POST “/appointments.419” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 453], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 453], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$2jO2HsjMnVFjK.jqzxNs/uUTSctUQ4ytY6xIKNQJ7bT30CiKvr81y"], ["created_at", "2019-11-22 01:14:31.536546"], ["updated_at", "2019-11-22 01:14:31.536546"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.549844"], ["last_sign_in_at", "2019-11-22 01:14:31.549844"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.550401"], ["id", 454]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 454], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.4ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:14:31.561500"], ["updated_at", "2019-11-22 01:14:31.561500"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 454], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 454], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started DELETE “/rooms/421” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"421"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 454], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 421], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 421]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 454], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$PUonegWz0RC1mTGFTqokS.wKZQNLszuJxBhwDm23atUyjUbdZ2Nqe"], ["created_at", "2019-11-22 01:14:31.607082"], ["updated_at", "2019-11-22 01:14:31.607082"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-11-22 01:14:31.610614"], ["updated_at", "2019-11-22 01:14:31.610614"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.636727"], ["last_sign_in_at", "2019-11-22 01:14:31.636727"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.637498"], ["id", 455]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 455], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 455], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started GET “/rooms/422/edit” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"422"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 455], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 422], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started PATCH “/rooms/422” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"422"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 455], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 422], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-11-22 01:14:31.701054"], ["id", 422]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/422 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/rooms/422” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"422"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 455], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 422], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$1f36naFQZWlER0yoIkcG.OlQ0Oz5W2f5EmN4RE7S1tD1Bccj3Jwvq"], ["created_at", "2019-11-22 01:14:31.742060"], ["updated_at", "2019-11-22 01:14:31.742060"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.756089"], ["last_sign_in_at", "2019-11-22 01:14:31.756089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.756744"], ["id", 456]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 456], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:14:31.768742"], ["updated_at", "2019-11-22 01:14:31.768742"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.770703"], ["updated_at", "2019-11-22 01:14:31.770703"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 456], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$asUW.XBbCG8J2ZrxO4FRvu7pFRTJGzGltayoowct2Xcxxxk0VDjai"], ["created_at", "2019-11-22 01:14:31.801239"], ["updated_at", "2019-11-22 01:14:31.801239"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.815417"], ["last_sign_in_at", "2019-11-22 01:14:31.815417"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.816069"], ["id", 457]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 457], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-11-22 01:14:31.828085"], ["updated_at", "2019-11-22 01:14:31.828085"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-11-22 01:14:31.829905"], ["updated_at", "2019-11-22 01:14:31.829905"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 457], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$/FSybU9WgSHhGmdEWw45HOKOSms0tRPxxKkcL/3qF6mcBayO4yc3i"], ["created_at", "2019-11-22 01:14:31.861111"], ["updated_at", "2019-11-22 01:14:31.861111"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.3ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:31.888824"], ["last_sign_in_at", "2019-11-22 01:14:31.888824"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:31.889488"], ["id", 458]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 458], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-11-21 22:14:31 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.3ms)
Rendered users/registrations/new.html.erb within layouts/application (17.5ms)

Completed 200 OK in 112ms (Views: 111.8ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$EMtruGaqOIGD1H5euDEtleI1F.LF0okEFC1B2YibLR/yp3t34RKg6"], ["created_at", "2019-11-22 01:14:32.088371"], ["updated_at", "2019-11-22 01:14:32.088371"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:14:32.090513"], ["last_sign_in_at", "2019-11-22 01:14:32.090513"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:14:32.091048"], ["id", 459]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 84ms (ActiveRecord: 2.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 459], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$8NqyrsLCH4RlCi8StKoLhuuQK/iep/3G5caEOjnBw4f8dfUpq.zj6"], ["created_at", "2019-11-22 01:14:32.186267"], ["updated_at", "2019-11-22 01:14:32.186267"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-11-22 01:14:32.212741"], ["last_sign_in_at", "2019-11-22 01:14:32.212741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-11-22 01:14:32.213582"], ["id", 460]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 460], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/users/460/edit” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"460"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 460], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.4ms) Started PUT “/users/460” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"460"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 460], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 460], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 460], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-11-22 01:14:32.274832"], ["id", 460]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 156ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-11-21 22:14:32 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 460], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 141ms (Views: 108.3ms | ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PzN7xZ/Wq5.59qAEx.4i2um.bIA/HSKaKEUrDTjRKxEY6PWWPC0X."], ["created_at", "2019-11-22 01:16:37.393696"], ["updated_at", "2019-11-22 01:16:37.393696"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.396890"], ["updated_at", "2019-11-22 01:16:37.396890"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.413931"], ["last_sign_in_at", "2019-11-22 01:16:37.413931"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.414650"], ["id", 461]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"427"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 427], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 461], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 461], ["room_id", 427], ["created_at", "2019-11-22 01:16:37.451016"], ["updated_at", "2019-11-22 01:16:37.451016"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 25ms (ActiveRecord: 2.3ms)

Appointment Load (0.8ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 427], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QdbS22ocqaey12TxAaTwEut87aROzhpr5PiZJb4ZhaHG.cSc4dkIm"], ["created_at", "2019-11-22 01:16:37.463502"], ["updated_at", "2019-11-22 01:16:37.463502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.465958"], ["updated_at", "2019-11-22 01:16:37.465958"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.468472"], ["last_sign_in_at", "2019-11-22 01:16:37.468472"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.468992"], ["id", 462]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"428"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 428], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 462], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 462], ["room_id", 428], ["created_at", "2019-11-22 01:16:37.474869"], ["updated_at", "2019-11-22 01:16:37.474869"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GlapI58HYe2A8hcN4Qx6Aufw/RCokN.wiNewDOitnkqkXw4fkPxKq"], ["created_at", "2019-11-22 01:16:37.483469"], ["updated_at", "2019-11-22 01:16:37.483469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.485614"], ["updated_at", "2019-11-22 01:16:37.485614"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.487886"], ["last_sign_in_at", "2019-11-22 01:16:37.487886"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.488483"], ["id", 463]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"429"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 429], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rxq5N0V6YYe1bKMOJJXJPuybszZM961kUB.iEyyNFw3F7BsjUDUXu"], ["created_at", "2019-11-22 01:16:37.498014"], ["updated_at", "2019-11-22 01:16:37.498014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.500271"], ["updated_at", "2019-11-22 01:16:37.500271"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.502579"], ["last_sign_in_at", "2019-11-22 01:16:37.502579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.503129"], ["id", 464]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"430"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$16vaxTaG5OXUcs..nSntd.jx840HVYR.9OqkMKZbOwGm12TcMqVTS"], ["created_at", "2019-11-22 01:16:37.512790"], ["updated_at", "2019-11-22 01:16:37.512790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.515312"], ["updated_at", "2019-11-22 01:16:37.515312"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 431], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 465], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 465], ["room_id", 431], ["created_at", "2019-11-22 01:16:37.519886"], ["updated_at", "2019-11-22 01:16:37.519886"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/431” for 127.0.0.1 at 2019-11-21 22:16:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.522431"], ["last_sign_in_at", "2019-11-22 01:16:37.522431"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.523001"], ["id", 465]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"431"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 431], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-11-18' AND room_id = '431')
Rendered appointments/show.html.erb within layouts/application (20.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 359ms (Views: 341.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ev5thhbmL8sv4lv0Yy2R1ONeBhucGach/cTbXg458BmdpNfQKNDvW"], ["created_at", "2019-11-22 01:16:37.891651"], ["updated_at", "2019-11-22 01:16:37.891651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.893955"], ["updated_at", "2019-11-22 01:16:37.893955"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 432], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 466], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 466], ["room_id", 432], ["created_at", "2019-11-22 01:16:37.897735"], ["updated_at", "2019-11-22 01:16:37.897735"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 432], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 466], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 466], ["room_id", 432], ["created_at", "2019-11-22 01:16:37.902300"], ["updated_at", "2019-11-22 01:16:37.902300"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.904641"], ["last_sign_in_at", "2019-11-22 01:16:37.904641"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.905143"], ["id", 466]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 466]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LTBVetBdM4.X.6fSdlxU5ewbMYmSunxfbqnWgIEh/wLvM/XDEYCSO"], ["created_at", "2019-11-22 01:16:37.947911"], ["updated_at", "2019-11-22 01:16:37.947911"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.950137"], ["updated_at", "2019-11-22 01:16:37.950137"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 433], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 467], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 467], ["room_id", 433], ["created_at", "2019-11-22 01:16:37.953948"], ["updated_at", "2019-11-22 01:16:37.953948"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 433], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 467], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 467], ["room_id", 433], ["created_at", "2019-11-22 01:16:37.957981"], ["updated_at", "2019-11-22 01:16:37.957981"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.960337"], ["last_sign_in_at", "2019-11-22 01:16:37.960337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.960863"], ["id", 467]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 467]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/pdXjo3Ii9BbOaqwxLkf8u52HUpVFjE46aNNjvhImJBntMFWEUU3W"], ["created_at", "2019-11-22 01:16:37.973643"], ["updated_at", "2019-11-22 01:16:37.973643"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:37.975876"], ["updated_at", "2019-11-22 01:16:37.975876"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 434], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 468], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 468], ["room_id", 434], ["created_at", "2019-11-22 01:16:37.979470"], ["updated_at", "2019-11-22 01:16:37.979470"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/189” for 127.0.0.1 at 2019-11-21 22:16:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.981617"], ["last_sign_in_at", "2019-11-22 01:16:37.981617"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.982111"], ["id", 468]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"189"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 189], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 189]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nIrGgoYzSkclX27tohFokOcD/QYnr7iJGvSQZ1xMWp0D9sXrud/t."], ["created_at", "2019-11-22 01:16:37.995323"], ["updated_at", "2019-11-22 01:16:37.995323"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:16:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:37.997603"], ["last_sign_in_at", "2019-11-22 01:16:37.997603"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:37.998094"], ["id", 469]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 37ms (Views: 21.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kU.hF1nLEkEM4zhtR4xCJ.7oU4yrGUYWUrzaHtMTZmC2E9P6jhAP."], ["created_at", "2019-11-22 01:16:38.044156"], ["updated_at", "2019-11-22 01:16:38.044156"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.046399"], ["updated_at", "2019-11-22 01:16:38.046399"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 435], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 470], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 470], ["room_id", 435], ["created_at", "2019-11-22 01:16:38.050224"], ["updated_at", "2019-11-22 01:16:38.050224"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 435], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 470], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 470], ["room_id", 435], ["created_at", "2019-11-22 01:16:38.054295"], ["updated_at", "2019-11-22 01:16:38.054295"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.056684"], ["last_sign_in_at", "2019-11-22 01:16:38.056684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.057179"], ["id", 470]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 435], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 470], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 470], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 17ms (Views: 4.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TX9MFew7gAf/FJmTQx.Gn.8jlHyyR4Kk5wQgqsmLy18hjz2o0Y9cW"], ["created_at", "2019-11-22 01:16:38.082950"], ["updated_at", "2019-11-22 01:16:38.082950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.085271"], ["updated_at", "2019-11-22 01:16:38.085271"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 436], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 471], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 471], ["room_id", 436], ["created_at", "2019-11-22 01:16:38.088924"], ["updated_at", "2019-11-22 01:16:38.088924"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 436], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 471], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 471], ["room_id", 436], ["created_at", "2019-11-22 01:16:38.092768"], ["updated_at", "2019-11-22 01:16:38.092768"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.095672"], ["last_sign_in_at", "2019-11-22 01:16:38.095672"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.096248"], ["id", 471]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 436], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 471], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 471], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VCh9BzJz7rplEt4mQ4QX3enDaZlO14wzCEv5T7zqNZZR9KTXp/pMC"], ["created_at", "2019-11-22 01:16:38.111977"], ["updated_at", "2019-11-22 01:16:38.111977"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.115134"], ["updated_at", "2019-11-22 01:16:38.115134"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 437], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 472], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 472], ["room_id", 437], ["created_at", "2019-11-22 01:16:38.119127"], ["updated_at", "2019-11-22 01:16:38.119127"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 437], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 472], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 472], ["room_id", 437], ["created_at", "2019-11-22 01:16:38.123729"], ["updated_at", "2019-11-22 01:16:38.123729"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.126426"], ["last_sign_in_at", "2019-11-22 01:16:38.126426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.126978"], ["id", 472]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IiLhOv67yxk2y/uBo15S.uEaCGaGU4Y2aI6v1sQ20gpN84yei36NK"], ["created_at", "2019-11-22 01:16:38.137809"], ["updated_at", "2019-11-22 01:16:38.137809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.140022"], ["updated_at", "2019-11-22 01:16:38.140022"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 438], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 473], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 473], ["room_id", 438], ["created_at", "2019-11-22 01:16:38.143967"], ["updated_at", "2019-11-22 01:16:38.143967"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 438], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 473], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 473], ["room_id", 438], ["created_at", "2019-11-22 01:16:38.147844"], ["updated_at", "2019-11-22 01:16:38.147844"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.150309"], ["last_sign_in_at", "2019-11-22 01:16:38.150309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.150871"], ["id", 473]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5nL7iGdJoAAB8u/c.fnJo.3krpkHp7XRaSjAH3gxniRv6objM3vTS"], ["created_at", "2019-11-22 01:16:38.164476"], ["updated_at", "2019-11-22 01:16:38.164476"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.166839"], ["last_sign_in_at", "2019-11-22 01:16:38.166839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.167304"], ["id", 474]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 66ms (Views: 49.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jr0znFdkXUyfxiNk8NpTNOSyjQV8RTBf9wkNi.LmAu/8u/OnNhiK6"], ["created_at", "2019-11-22 01:16:38.244230"], ["updated_at", "2019-11-22 01:16:38.244230"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.246733"], ["last_sign_in_at", "2019-11-22 01:16:38.246733"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.247241"], ["id", 475]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jvILF2zIQwC0uG6TtaDUvOrrMWDQ6SbrSCpujoZ35/DRff/0xUsv2"], ["created_at", "2019-11-22 01:16:38.256790"], ["updated_at", "2019-11-22 01:16:38.256790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.259740"], ["last_sign_in_at", "2019-11-22 01:16:38.259740"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.260274"], ["id", 476]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 22ms (Views: 3.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9CLSUwGgf3b8STQCSoBpo.nvQqKcp6Qafdk.s1n7tZNV5eYdPFkw."], ["created_at", "2019-11-22 01:16:38.290850"], ["updated_at", "2019-11-22 01:16:38.290850"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.293459"], ["last_sign_in_at", "2019-11-22 01:16:38.293459"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.293974"], ["id", 477]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o49Sgf02kVlenFxN4iGWzuacN6m54CbWTNOWRngDc8/ycHgvEOumO"], ["created_at", "2019-11-22 01:16:38.313771"], ["updated_at", "2019-11-22 01:16:38.313771"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.315932"], ["updated_at", "2019-11-22 01:16:38.315932"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/439” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.318043"], ["last_sign_in_at", "2019-11-22 01:16:38.318043"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.318546"], ["id", 478]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"439"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 439], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 23ms (Views: 4.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vS7l3ZZ/F5qe.fQNJS2wH.SL1ENmBJweE8VNu1gO3gVSpznYXdn92"], ["created_at", "2019-11-22 01:16:38.350159"], ["updated_at", "2019-11-22 01:16:38.350159"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.352471"], ["updated_at", "2019-11-22 01:16:38.352471"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/440” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.354974"], ["last_sign_in_at", "2019-11-22 01:16:38.354974"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.355605"], ["id", 479]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"440"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 440], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.366829"], ["updated_at", "2019-11-22 01:16:38.366829"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/441” for 127.0.0.1 at 2019-11-21 22:16:38 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"441"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fBxgwUV6QgprtMMTSVIYyu4JbQLcpp8oek0keIWzbWJHjBf9nKcjy"], ["created_at", "2019-11-22 01:16:38.378552"], ["updated_at", "2019-11-22 01:16:38.378552"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.381389"], ["updated_at", "2019-11-22 01:16:38.381389"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/442/edit” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.384401"], ["last_sign_in_at", "2019-11-22 01:16:38.384401"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.384998"], ["id", 480]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"442"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 442], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 23ms (Views: 5.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K5DZh8vXMDOx4jz1gXn..um.t/7vVbTw7Ici9ecDncVGe6fyu7n8W"], ["created_at", "2019-11-22 01:16:38.417358"], ["updated_at", "2019-11-22 01:16:38.417358"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.420223"], ["updated_at", "2019-11-22 01:16:38.420223"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/443/edit” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.422697"], ["last_sign_in_at", "2019-11-22 01:16:38.422697"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.423149"], ["id", 481]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"443"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 443], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.435231"], ["updated_at", "2019-11-22 01:16:38.435231"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/444” for 127.0.0.1 at 2019-11-21 22:16:38 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"444"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZZu6N1kqVtQXhJXa3DMSCeSzGHYP7XlTJnBGiikT5q6BIB3mBEBr."], ["created_at", "2019-11-22 01:16:38.447943"], ["updated_at", "2019-11-22 01:16:38.447943"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.451510"], ["last_sign_in_at", "2019-11-22 01:16:38.451510"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.452308"], ["id", 482]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.5ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.456681"], ["updated_at", "2019-11-22 01:16:38.456681"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IibIe90ekGTmtYZY4AhsquE5jI1UTPrYoMoUwzRoW4EV/FijjcEMG"], ["created_at", "2019-11-22 01:16:38.465586"], ["updated_at", "2019-11-22 01:16:38.465586"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.468345"], ["last_sign_in_at", "2019-11-22 01:16:38.468345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.469107"], ["id", 483]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.472851"], ["updated_at", "2019-11-22 01:16:38.472851"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qh9knYNqomu0qjqJrhfmKOQ.2gLm6XyyN5CkaCzlvPNVsuPkbgNbK"], ["created_at", "2019-11-22 01:16:38.481206"], ["updated_at", "2019-11-22 01:16:38.481206"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.484334"], ["last_sign_in_at", "2019-11-22 01:16:38.484334"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.484810"], ["id", 484]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/WjzU71to7LBWkIFQUH3BOv.trYgTw7cwAKJXb7hlDbK7CDl50xQO"], ["created_at", "2019-11-22 01:16:38.496771"], ["updated_at", "2019-11-22 01:16:38.496771"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.499807"], ["last_sign_in_at", "2019-11-22 01:16:38.499807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.500330"], ["id", 485]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rzZUmEinWERM3zeC23u/beYn2KqArkUM8RR5.jxd2VxHESNcuD4GS"], ["created_at", "2019-11-22 01:16:38.510845"], ["updated_at", "2019-11-22 01:16:38.510845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.513635"], ["last_sign_in_at", "2019-11-22 01:16:38.513635"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.514154"], ["id", 486]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gc6hPWE/ugrfI0pjb6OOWO36oj/q/j2Rs5P3rn06JIyYMy4G0lLbS"], ["created_at", "2019-11-22 01:16:38.524154"], ["updated_at", "2019-11-22 01:16:38.524154"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.526614"], ["updated_at", "2019-11-22 01:16:38.526614"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/447” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.528922"], ["last_sign_in_at", "2019-11-22 01:16:38.528922"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.529636"], ["id", 487]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"447"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 447], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-22 01:16:38.534555"], ["id", 447]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/447 Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wEInqByFk0amS12yv4I1v.nPxYVnGcrvxb3MLpc4s1D2D1JmhHquK"], ["created_at", "2019-11-22 01:16:38.543309"], ["updated_at", "2019-11-22 01:16:38.543309"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.545826"], ["updated_at", "2019-11-22 01:16:38.545826"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/448” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.549058"], ["last_sign_in_at", "2019-11-22 01:16:38.549058"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.549576"], ["id", 488]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"448"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 448], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-11-22 01:16:38.556304"], ["id", 448]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/448 Completed 302 Found in 6ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/vJDS.2z3P9ZxFUSKBtMnO0P6DfMO3MB95qz79DOCIfqc5z.Mjezm"], ["created_at", "2019-11-22 01:16:38.564729"], ["updated_at", "2019-11-22 01:16:38.564729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.566853"], ["updated_at", "2019-11-22 01:16:38.566853"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/449” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.569435"], ["last_sign_in_at", "2019-11-22 01:16:38.569435"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.570088"], ["id", 489]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"449"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 449], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$veDadTeOtdHx3ICxx4vh4.AxlZ1DIpzhR40kM894/0nurYVj40sLi"], ["created_at", "2019-11-22 01:16:38.584985"], ["updated_at", "2019-11-22 01:16:38.584985"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.587592"], ["updated_at", "2019-11-22 01:16:38.587592"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/450” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.590319"], ["last_sign_in_at", "2019-11-22 01:16:38.590319"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.590879"], ["id", 490]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"450"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 450], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (13.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 15.9ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$97NTo27R39fr.S7kmWF9a.Wp8itODRYtCrpGoiIGiOur3UR.UryDO"], ["created_at", "2019-11-22 01:16:38.620476"], ["updated_at", "2019-11-22 01:16:38.620476"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.623129"], ["last_sign_in_at", "2019-11-22 01:16:38.623129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.623629"], ["id", 491]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9a0btPBHsGzGwe5jtc1k6e9Ki.zICaeWGHdWE2XLea07kG4SvVEeW"], ["created_at", "2019-11-22 01:16:38.635031"], ["updated_at", "2019-11-22 01:16:38.635031"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.637149"], ["updated_at", "2019-11-22 01:16:38.637149"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/451” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.639020"], ["last_sign_in_at", "2019-11-22 01:16:38.639020"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.639624"], ["id", 492]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"451"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 451], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 451]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cAtDdV1r8FWZ0W3GwvUiMunQVWxCsIUqWoKCFInUsoAof1XKD9GTC"], ["created_at", "2019-11-22 01:16:38.653430"], ["updated_at", "2019-11-22 01:16:38.653430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.655667"], ["updated_at", "2019-11-22 01:16:38.655667"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/452” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.657571"], ["last_sign_in_at", "2019-11-22 01:16:38.657571"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.658111"], ["id", 493]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"452"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 452], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 452]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FG9Y3vusyy.iu7056AytEOeIcH1fZHeQ.4jcc3XGnH6me/74q2vtm"], ["created_at", "2019-11-22 01:16:38.670804"], ["updated_at", "2019-11-22 01:16:38.670804"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.673192"], ["updated_at", "2019-11-22 01:16:38.673192"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/453” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.676119"], ["last_sign_in_at", "2019-11-22 01:16:38.676119"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.676827"], ["id", 494]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"453"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iGU0QNTbGhShzol9lCoxmeO83JtyWWW4IAuZ4G2v6ZUvj0tKYBmwi"], ["created_at", "2019-11-22 01:16:38.687144"], ["updated_at", "2019-11-22 01:16:38.687144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-11-22 01:16:38.689363"], ["updated_at", "2019-11-22 01:16:38.689363"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/454” for 127.0.0.1 at 2019-11-21 22:16:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-11-22 01:16:38.691209"], ["last_sign_in_at", "2019-11-22 01:16:38.691209"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-11-22 01:16:38.691779"], ["id", 495]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"454"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (2.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (29.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (59.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$43K6CRaeYEMUbvq36y3jB.2Td.26o2mARQz2hXGTR0e5syo1PiLKK"], ["created_at", "2019-12-06 01:01:41.051511"], ["updated_at", "2019-12-06 01:01:41.051511"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (16.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SPoiZXsShaVD7ByJPX5x6uQ/LFKDB6iU79i6.cs/ZJBXQ7AaCJW8O"], ["created_at", "2019-12-06 01:01:42.846210"], ["updated_at", "2019-12-06 01:01:42.846210"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (14.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:42.854798"], ["updated_at", "2019-12-06 01:01:42.854798"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qY2mHKgYl5xjm7W3WQxQ8..LuF8j7eie4tRcncqyvR4V6ieGuZojq"], ["created_at", "2019-12-06 01:01:42.875245"], ["updated_at", "2019-12-06 01:01:42.875245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:42.877436"], ["updated_at", "2019-12-06 01:01:42.877436"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Mx8aAzCxaQDXxpnpnQag9ukOTWWuH1XlEBYBzfii.xVGBkhCWzdMS"], ["created_at", "2019-12-06 01:01:42.885266"], ["updated_at", "2019-12-06 01:01:42.885266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:42.887466"], ["updated_at", "2019-12-06 01:01:42.887466"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$na4I16X6.SdpnQWMJi23x.X6FXHm7XJIgXLOQ9HzGeD1I1tqPvWiq"], ["created_at", "2019-12-06 01:01:42.894153"], ["updated_at", "2019-12-06 01:01:42.894153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:42.896443"], ["updated_at", "2019-12-06 01:01:42.896443"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 164ms (Views: 110.1ms | ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mMy.Nt1FPoFa2tjoOEVU8uKdAoGUMCcWMZfcYiSPMZyXLSao.h4HW"], ["created_at", "2019-12-06 01:01:44.183253"], ["updated_at", "2019-12-06 01:01:44.183253"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:44.185833"], ["updated_at", "2019-12-06 01:01:44.185833"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:01:44 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (10.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:44.204450"], ["last_sign_in_at", "2019-12-06 01:01:44.204450"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:44.205191"], ["id", 501]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"459"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 459], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 501], ["LIMIT", 1]]
SQL (3.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 501], ["room_id", 459], ["created_at", "2019-12-06 01:01:44.253983"], ["updated_at", "2019-12-06 01:01:44.253983"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 30ms (ActiveRecord: 5.2ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 459], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$diQPZwZlNWKhQB7yyA4VdOlZqw/h.lj2/eau7uzxqdiMwBtKfGT3G"], ["created_at", "2019-12-06 01:01:44.275649"], ["updated_at", "2019-12-06 01:01:44.275649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:44.278025"], ["updated_at", "2019-12-06 01:01:44.278025"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:01:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:44.280603"], ["last_sign_in_at", "2019-12-06 01:01:44.280603"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:44.281125"], ["id", 502]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"460"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 460], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 502], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 502], ["room_id", 460], ["created_at", "2019-12-06 01:01:44.286559"], ["updated_at", "2019-12-06 01:01:44.286559"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1Vvte0yLNxyCpK2nI06LpOPe2VI5XYZ4QStyjKPx8ByWpuAA98gHu"], ["created_at", "2019-12-06 01:01:44.295040"], ["updated_at", "2019-12-06 01:01:44.295040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:44.297279"], ["updated_at", "2019-12-06 01:01:44.297279"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:01:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:44.300157"], ["last_sign_in_at", "2019-12-06 01:01:44.300157"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:44.300724"], ["id", 503]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"461"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 461], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wBkV899pjC/vG/x24eMHJOPAQp4Es5o3auUCinYtm/CpzNivuExrG"], ["created_at", "2019-12-06 01:01:44.310107"], ["updated_at", "2019-12-06 01:01:44.310107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:44.312510"], ["updated_at", "2019-12-06 01:01:44.312510"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:01:44 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:44.314841"], ["last_sign_in_at", "2019-12-06 01:01:44.314841"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:44.315853"], ["id", 504]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"462"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pfxSuGA6hjiKQXhTFSlzk.u7qGtVYWSTDImYEj42m8vXIpi5ItYum"], ["created_at", "2019-12-06 01:01:44.325900"], ["updated_at", "2019-12-06 01:01:44.325900"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:44.328091"], ["updated_at", "2019-12-06 01:01:44.328091"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 463], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 505], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 505], ["room_id", 463], ["created_at", "2019-12-06 01:01:44.332455"], ["updated_at", "2019-12-06 01:01:44.332455"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/463” for 127.0.0.1 at 2019-12-05 22:01:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:44.335040"], ["last_sign_in_at", "2019-12-06 01:01:44.335040"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:44.335548"], ["id", 505]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"463"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 463], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '463')
Rendered appointments/show.html.erb within layouts/application (63.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10403ms (Views: 10385.3ms | ActiveRecord: 0.7ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4qI2l8gXqJA4FC0QvI7PuOzPt4cyV0I2S4WKM.sPT8ObqCx5uqGmq"], ["created_at", "2019-12-06 01:01:54.751355"], ["updated_at", "2019-12-06 01:01:54.751355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.753565"], ["updated_at", "2019-12-06 01:01:54.753565"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 464], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 506], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 506], ["room_id", 464], ["created_at", "2019-12-06 01:01:54.757325"], ["updated_at", "2019-12-06 01:01:54.757325"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 464], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 506], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 506], ["room_id", 464], ["created_at", "2019-12-06 01:01:54.761156"], ["updated_at", "2019-12-06 01:01:54.761156"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.763566"], ["last_sign_in_at", "2019-12-06 01:01:54.763566"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.764108"], ["id", 506]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 506]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 39ms (Views: 4.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UyKfaD.oYL7ejZF/FCB48eAZhy8vtKI9ki991/MtEQh8JP3S0QcGi"], ["created_at", "2019-12-06 01:01:54.811892"], ["updated_at", "2019-12-06 01:01:54.811892"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.814462"], ["updated_at", "2019-12-06 01:01:54.814462"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 465], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 507], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 507], ["room_id", 465], ["created_at", "2019-12-06 01:01:54.818969"], ["updated_at", "2019-12-06 01:01:54.818969"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 465], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 507], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 507], ["room_id", 465], ["created_at", "2019-12-06 01:01:54.823060"], ["updated_at", "2019-12-06 01:01:54.823060"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.825471"], ["last_sign_in_at", "2019-12-06 01:01:54.825471"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.825992"], ["id", 507]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 507]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$J43/6UGIvWVf0kInrivdGe21jJ4LP2Qpc5SPYc1bCp2Sil9qUfl7q"], ["created_at", "2019-12-06 01:01:54.839620"], ["updated_at", "2019-12-06 01:01:54.839620"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.841777"], ["updated_at", "2019-12-06 01:01:54.841777"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 466], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 508], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 508], ["room_id", 466], ["created_at", "2019-12-06 01:01:54.845321"], ["updated_at", "2019-12-06 01:01:54.845321"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/205” for 127.0.0.1 at 2019-12-05 22:01:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.847467"], ["last_sign_in_at", "2019-12-06 01:01:54.847467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.847948"], ["id", 508]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"205"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 205], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 205]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ofWoit9gO5y.5GZPf2FE6ewbcROQrpbG5e5Rd5l.zjHFcCGUfzVqy"], ["created_at", "2019-12-06 01:01:54.861864"], ["updated_at", "2019-12-06 01:01:54.861864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.864153"], ["last_sign_in_at", "2019-12-06 01:01:54.864153"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.864629"], ["id", 509]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 34ms (Views: 18.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WaHfWWI.GpmKhMpWxI3ez.86XJrznj3ucZ/7F4lF9w5NL1W0C.8tW"], ["created_at", "2019-12-06 01:01:54.908227"], ["updated_at", "2019-12-06 01:01:54.908227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.910396"], ["updated_at", "2019-12-06 01:01:54.910396"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 467], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 510], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 510], ["room_id", 467], ["created_at", "2019-12-06 01:01:54.914069"], ["updated_at", "2019-12-06 01:01:54.914069"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 467], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 510], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 510], ["room_id", 467], ["created_at", "2019-12-06 01:01:54.918259"], ["updated_at", "2019-12-06 01:01:54.918259"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.920649"], ["last_sign_in_at", "2019-12-06 01:01:54.920649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.921140"], ["id", 510]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 467], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 510], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 510], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HHWHjLcPiLlhPAmIrM/Yqex.xLtMkwseuelvnbUVFAYGdbJT1/5Xm"], ["created_at", "2019-12-06 01:01:54.934580"], ["updated_at", "2019-12-06 01:01:54.934580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.936757"], ["updated_at", "2019-12-06 01:01:54.936757"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 468], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 511], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 511], ["room_id", 468], ["created_at", "2019-12-06 01:01:54.940262"], ["updated_at", "2019-12-06 01:01:54.940262"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 468], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 511], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 511], ["room_id", 468], ["created_at", "2019-12-06 01:01:54.943958"], ["updated_at", "2019-12-06 01:01:54.943958"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.946228"], ["last_sign_in_at", "2019-12-06 01:01:54.946228"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.946730"], ["id", 511]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 468], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 511], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 511], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s1MsoIiw5y0kifUAqOB7b.EXGLiYWsu6nRWNljsZb1GC50QoIU3HG"], ["created_at", "2019-12-06 01:01:54.961160"], ["updated_at", "2019-12-06 01:01:54.961160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.963361"], ["updated_at", "2019-12-06 01:01:54.963361"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 469], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 512], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 512], ["room_id", 469], ["created_at", "2019-12-06 01:01:54.967535"], ["updated_at", "2019-12-06 01:01:54.967535"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 469], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 512], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 512], ["room_id", 469], ["created_at", "2019-12-06 01:01:54.971385"], ["updated_at", "2019-12-06 01:01:54.971385"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.973687"], ["last_sign_in_at", "2019-12-06 01:01:54.973687"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.974190"], ["id", 512]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WNwZijABaqOuDhvTpHTeQOrv7dqGDtislB9Pm/mmUQYrc3LWtPZVm"], ["created_at", "2019-12-06 01:01:54.985106"], ["updated_at", "2019-12-06 01:01:54.985106"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:54.987300"], ["updated_at", "2019-12-06 01:01:54.987300"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 470], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 513], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 513], ["room_id", 470], ["created_at", "2019-12-06 01:01:54.990917"], ["updated_at", "2019-12-06 01:01:54.990917"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 470], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 513], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 513], ["room_id", 470], ["created_at", "2019-12-06 01:01:54.994701"], ["updated_at", "2019-12-06 01:01:54.994701"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:01:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:54.997576"], ["last_sign_in_at", "2019-12-06 01:01:54.997576"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:54.998092"], ["id", 513]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/3wCJQ41mywTahhdsoKi4OJYvGTrvbhSvHqUavGuPy7jFu./zNKxK"], ["created_at", "2019-12-06 01:01:55.011788"], ["updated_at", "2019-12-06 01:01:55.011788"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.014120"], ["last_sign_in_at", "2019-12-06 01:01:55.014120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.014626"], ["id", 514]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (10.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 65ms (Views: 48.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SfKEWBpZpxwAy6eIPI8nmOMbefEZQEa4XO7i92Ee6qYSzGJH/NVOS"], ["created_at", "2019-12-06 01:01:55.092558"], ["updated_at", "2019-12-06 01:01:55.092558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.094806"], ["last_sign_in_at", "2019-12-06 01:01:55.094806"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.095335"], ["id", 515]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ndACoOPbFkWMww7mncNdjeXSWNd3G7NcpVBZRbyP4BmZBldcckNHi"], ["created_at", "2019-12-06 01:01:55.105787"], ["updated_at", "2019-12-06 01:01:55.105787"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.108171"], ["last_sign_in_at", "2019-12-06 01:01:55.108171"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.108675"], ["id", 516]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oqr5HNB9XUpjCj5Rv3AR5epTvJgD3hYLWZa6ScP9/6XEzL9QWB9xi"], ["created_at", "2019-12-06 01:01:55.136386"], ["updated_at", "2019-12-06 01:01:55.136386"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.138610"], ["last_sign_in_at", "2019-12-06 01:01:55.138610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.139115"], ["id", 517]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8ZTEC6sZeouOWxTizGVYtOBWlEXpLlWu8qvrEpI/EV04NS4ADfqiO"], ["created_at", "2019-12-06 01:01:55.158276"], ["updated_at", "2019-12-06 01:01:55.158276"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.160402"], ["updated_at", "2019-12-06 01:01:55.160402"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/471” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.162415"], ["last_sign_in_at", "2019-12-06 01:01:55.162415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.162911"], ["id", 518]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"471"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 471], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zhIoCie.LnwqpMbiiAOeqOduMkU0APwwusAAdgE1NcYU2QOWAHEdO"], ["created_at", "2019-12-06 01:01:55.192517"], ["updated_at", "2019-12-06 01:01:55.192517"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.194845"], ["updated_at", "2019-12-06 01:01:55.194845"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/472” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.196924"], ["last_sign_in_at", "2019-12-06 01:01:55.196924"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.197420"], ["id", 519]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"472"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 472], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.207524"], ["updated_at", "2019-12-06 01:01:55.207524"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/473” for 127.0.0.1 at 2019-12-05 22:01:55 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"473"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xL1AeWVIaCUU8YPomip5GOd6zGL3Lc5NaoIeNAJxmMiwfraLGHMJC"], ["created_at", "2019-12-06 01:01:55.219080"], ["updated_at", "2019-12-06 01:01:55.219080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.221475"], ["updated_at", "2019-12-06 01:01:55.221475"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/474/edit” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.223556"], ["last_sign_in_at", "2019-12-06 01:01:55.223556"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.224077"], ["id", 520]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"474"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 474], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 43ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lNpD2t8cnoOwCCaXJ8ZsG.0HPH0j/kQN/fPIZ3mNIT8/AXktsmc8a"], ["created_at", "2019-12-06 01:01:55.275100"], ["updated_at", "2019-12-06 01:01:55.275100"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.277315"], ["updated_at", "2019-12-06 01:01:55.277315"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/475/edit” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.279337"], ["last_sign_in_at", "2019-12-06 01:01:55.279337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.279829"], ["id", 521]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"475"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 475], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.4ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.290232"], ["updated_at", "2019-12-06 01:01:55.290232"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/476” for 127.0.0.1 at 2019-12-05 22:01:55 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"476"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qnRnOuLCQy6YOxrXWX3RAOvh9J0gL7dOXLCvHB77wK8eQGixCRJ.W"], ["created_at", "2019-12-06 01:01:55.300921"], ["updated_at", "2019-12-06 01:01:55.300921"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.303420"], ["last_sign_in_at", "2019-12-06 01:01:55.303420"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.303907"], ["id", 522]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.307219"], ["updated_at", "2019-12-06 01:01:55.307219"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.8/LsMXY.xi6qxCbccMqMOiic580GbgRwa0vqC5JHHdlnABl.xhFm"], ["created_at", "2019-12-06 01:01:55.315708"], ["updated_at", "2019-12-06 01:01:55.315708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.318595"], ["last_sign_in_at", "2019-12-06 01:01:55.318595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.319085"], ["id", 523]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.322609"], ["updated_at", "2019-12-06 01:01:55.322609"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GbZMMhziSTSEwXb6lMyqVOOZTIV50RT9PkhnI1CoB53TiBIxsyQGy"], ["created_at", "2019-12-06 01:01:55.330891"], ["updated_at", "2019-12-06 01:01:55.330891"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.333762"], ["last_sign_in_at", "2019-12-06 01:01:55.333762"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.334295"], ["id", 524]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (13.6ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 15ms (ActiveRecord: 13.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9GtWlg2IgUPObROz3s746OghunM20yv270iBKRJKY7qre1QMZM.JG"], ["created_at", "2019-12-06 01:01:55.358465"], ["updated_at", "2019-12-06 01:01:55.358465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.360921"], ["last_sign_in_at", "2019-12-06 01:01:55.360921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.361400"], ["id", 525]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KV2uiBaX1ahEj4AVYtgHBOVtGAtzGgTpvaIrfXJ.14zBk1/DDo4GO"], ["created_at", "2019-12-06 01:01:55.372122"], ["updated_at", "2019-12-06 01:01:55.372122"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.375108"], ["last_sign_in_at", "2019-12-06 01:01:55.375108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.375610"], ["id", 526]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ws.hN4ARmkPRAf.8e1bfY.FbpvFT6zX62pA8BIwj2MTSYY3nRXpOK"], ["created_at", "2019-12-06 01:01:55.386488"], ["updated_at", "2019-12-06 01:01:55.386488"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.388677"], ["updated_at", "2019-12-06 01:01:55.388677"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/479” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.390985"], ["last_sign_in_at", "2019-12-06 01:01:55.390985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.391508"], ["id", 527]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"479"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 479], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:01:55.395247"], ["id", 479]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/479 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b.zcXJX/IKfO1KffYsdBuOZNQpTtfhWQ6GBJB8Wy9d77wHnFN0XUq"], ["created_at", "2019-12-06 01:01:55.403542"], ["updated_at", "2019-12-06 01:01:55.403542"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.405698"], ["updated_at", "2019-12-06 01:01:55.405698"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/480” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.407986"], ["last_sign_in_at", "2019-12-06 01:01:55.407986"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.408530"], ["id", 528]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"480"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 480], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:01:55.412201"], ["id", 480]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/480 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uWYYoAyCcXcrLBHslG7l..N..roxV.eK09mPPLTDroyQMYYMCb.QW"], ["created_at", "2019-12-06 01:01:55.420798"], ["updated_at", "2019-12-06 01:01:55.420798"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.422970"], ["updated_at", "2019-12-06 01:01:55.422970"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/481” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.425136"], ["last_sign_in_at", "2019-12-06 01:01:55.425136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.425648"], ["id", 529]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"481"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 481], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SLZxWqnv/a8yowb86OZEw.ME0WArqNJcrP11eALhzGtE5OR928MwK"], ["created_at", "2019-12-06 01:01:55.439427"], ["updated_at", "2019-12-06 01:01:55.439427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.441669"], ["updated_at", "2019-12-06 01:01:55.441669"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/482” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.443831"], ["last_sign_in_at", "2019-12-06 01:01:55.443831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.444337"], ["id", 530]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"482"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 482], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VZ4tmK6TFqLw34Vu5hYd.eHvOLPOHC0brm751FACxehXTmOfVGURO"], ["created_at", "2019-12-06 01:01:55.458699"], ["updated_at", "2019-12-06 01:01:55.458699"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.461247"], ["last_sign_in_at", "2019-12-06 01:01:55.461247"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.461742"], ["id", 531]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PJrFsucZKtqXON/Y6oEIruOeFWa31HV5oUVuhnkweAbfPpX95SsdG"], ["created_at", "2019-12-06 01:01:55.472442"], ["updated_at", "2019-12-06 01:01:55.472442"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.474559"], ["updated_at", "2019-12-06 01:01:55.474559"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/483” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.476384"], ["last_sign_in_at", "2019-12-06 01:01:55.476384"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.476860"], ["id", 532]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"483"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 483], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 483]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$z2PiLL3gC1tK0uT8uZUIre9.Na3tI8pPX/P2lCNHv.xrtRy0Tl27i"], ["created_at", "2019-12-06 01:01:55.488233"], ["updated_at", "2019-12-06 01:01:55.488233"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.490399"], ["updated_at", "2019-12-06 01:01:55.490399"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/484” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.492238"], ["last_sign_in_at", "2019-12-06 01:01:55.492238"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.492715"], ["id", 533]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"484"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 484], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 484]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2MXBxwMk62KVEef6Uj48XeGKNgR24D/c4VcL5LcrxCqqZuBs5iF3y"], ["created_at", "2019-12-06 01:01:55.504576"], ["updated_at", "2019-12-06 01:01:55.504576"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.506684"], ["updated_at", "2019-12-06 01:01:55.506684"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/485” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.508431"], ["last_sign_in_at", "2019-12-06 01:01:55.508431"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.508888"], ["id", 534]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"485"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$43SpFSfZkye0T0fhrIVi4ueX7OccBnjzNBabNOftMaTeHeh4/oLli"], ["created_at", "2019-12-06 01:01:55.518039"], ["updated_at", "2019-12-06 01:01:55.518039"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:01:55.520179"], ["updated_at", "2019-12-06 01:01:55.520179"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/486” for 127.0.0.1 at 2019-12-05 22:01:55 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:01:55.521954"], ["last_sign_in_at", "2019-12-06 01:01:55.521954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:01:55.522444"], ["id", 535]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"486"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$a3AnbpvlJEHEFSkctD7W2.Cz.zXGLwblRFYvzWK6WFi1YLS6zQNFS"], ["created_at", "2019-12-06 01:04:29.772034"], ["updated_at", "2019-12-06 01:04:29.772034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HJpDv.Yi1Vdh9Esj3TO9bOg6vc6dVLYD7ph97mLQTBFWpDTJmDmZi"], ["created_at", "2019-12-06 01:04:29.780438"], ["updated_at", "2019-12-06 01:04:29.780438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:29.788985"], ["updated_at", "2019-12-06 01:04:29.788985"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q0pc/3jqhPdpZdtZlqs4QOdE9IJ8Jk3mzIAsCUbjiDt3lWKgpNs4."], ["created_at", "2019-12-06 01:04:29.796133"], ["updated_at", "2019-12-06 01:04:29.796133"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:29.798441"], ["updated_at", "2019-12-06 01:04:29.798441"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$p8Px7yCMkFJ3qFNQyRzK8.iPd5DymIJxLI.kh/n8dfvr/MkVJWp9G"], ["created_at", "2019-12-06 01:04:29.806613"], ["updated_at", "2019-12-06 01:04:29.806613"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:29.808962"], ["updated_at", "2019-12-06 01:04:29.808962"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QdS9CYPeBGAzF9OOKTxDc.0v0XsAqdUIvLEOvfE/57jtM7VvKAdfS"], ["created_at", "2019-12-06 01:04:29.815689"], ["updated_at", "2019-12-06 01:04:29.815689"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:29.817940"], ["updated_at", "2019-12-06 01:04:29.817940"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 139ms (Views: 107.1ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HUOp5EtzF8750pvqmA3ZE.nQiZEfGJv2fvJpyhld1qCYulCvaQ3vi"], ["created_at", "2019-12-06 01:04:30.438803"], ["updated_at", "2019-12-06 01:04:30.438803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.440938"], ["updated_at", "2019-12-06 01:04:30.440938"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.456620"], ["last_sign_in_at", "2019-12-06 01:04:30.456620"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.457216"], ["id", 541]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"491"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 491], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 541], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 541], ["room_id", 491], ["created_at", "2019-12-06 01:04:30.492314"], ["updated_at", "2019-12-06 01:04:30.492314"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 1.9ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 491], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$W9TM6BDKznJyGGdDFWFk6evQtxqOV0NlRfOfJD1EppljYuF6RYZ4a"], ["created_at", "2019-12-06 01:04:30.501336"], ["updated_at", "2019-12-06 01:04:30.501336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.503484"], ["updated_at", "2019-12-06 01:04:30.503484"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.505878"], ["last_sign_in_at", "2019-12-06 01:04:30.505878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.506357"], ["id", 542]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"492"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 492], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 542], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 542], ["room_id", 492], ["created_at", "2019-12-06 01:04:30.511089"], ["updated_at", "2019-12-06 01:04:30.511089"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SvlwLB9a2Kj0KTH0UHI/7OnOGQgHMJ6iE3rbIJ14BVh8GlBj2Y18u"], ["created_at", "2019-12-06 01:04:30.518666"], ["updated_at", "2019-12-06 01:04:30.518666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.521143"], ["updated_at", "2019-12-06 01:04:30.521143"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.523449"], ["last_sign_in_at", "2019-12-06 01:04:30.523449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.523952"], ["id", 543]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"493"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 493], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4nuzAGKq5JWQhlDb9J/zBuzTLKbjXsoaDyuoILDZSk92SlH9EdqSm"], ["created_at", "2019-12-06 01:04:30.532331"], ["updated_at", "2019-12-06 01:04:30.532331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.534414"], ["updated_at", "2019-12-06 01:04:30.534414"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.536661"], ["last_sign_in_at", "2019-12-06 01:04:30.536661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.537248"], ["id", 544]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"494"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$e/l6FGWNMTlAmcIX8TxPweRSW6Rq7Aac5bUKYABO2Hjh1E11hDd7G"], ["created_at", "2019-12-06 01:04:30.547832"], ["updated_at", "2019-12-06 01:04:30.547832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.550055"], ["updated_at", "2019-12-06 01:04:30.550055"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 495], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 545], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 545], ["room_id", 495], ["created_at", "2019-12-06 01:04:30.554200"], ["updated_at", "2019-12-06 01:04:30.554200"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/495” for 127.0.0.1 at 2019-12-05 22:04:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.556817"], ["last_sign_in_at", "2019-12-06 01:04:30.556817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.557341"], ["id", 545]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"495"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 495], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '495')
Rendered appointments/show.html.erb within layouts/application (21.8ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 347ms (Views: 329.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fu5IbJAMkIgBqeDGbIma5ex4CdPN00Tx3lVh2FnIbiGIbFadiwN.C"], ["created_at", "2019-12-06 01:04:30.913987"], ["updated_at", "2019-12-06 01:04:30.913987"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.916124"], ["updated_at", "2019-12-06 01:04:30.916124"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 496], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 546], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 546], ["room_id", 496], ["created_at", "2019-12-06 01:04:30.920437"], ["updated_at", "2019-12-06 01:04:30.920437"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 496], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 546], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 546], ["room_id", 496], ["created_at", "2019-12-06 01:04:30.924869"], ["updated_at", "2019-12-06 01:04:30.924869"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.927225"], ["last_sign_in_at", "2019-12-06 01:04:30.927225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.927798"], ["id", 546]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 546]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 36ms (Views: 4.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ghbPYJRbD9INDJbJmjV4OeWu7xqiakk0HWCrFpKSpJ.56I6FK6L7u"], ["created_at", "2019-12-06 01:04:30.972190"], ["updated_at", "2019-12-06 01:04:30.972190"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:30.974420"], ["updated_at", "2019-12-06 01:04:30.974420"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 497], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 547], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 547], ["room_id", 497], ["created_at", "2019-12-06 01:04:30.978463"], ["updated_at", "2019-12-06 01:04:30.978463"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 497], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 547], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 547], ["room_id", 497], ["created_at", "2019-12-06 01:04:30.982442"], ["updated_at", "2019-12-06 01:04:30.982442"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:04:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:30.984852"], ["last_sign_in_at", "2019-12-06 01:04:30.984852"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:30.985362"], ["id", 547]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 547]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$i2hkPIQDvyLdRVHJaV9aIu1Z8xere5VFapGNlxpsXxx1tckmdCp2e"], ["created_at", "2019-12-06 01:04:30.999032"], ["updated_at", "2019-12-06 01:04:30.999032"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.001185"], ["updated_at", "2019-12-06 01:04:31.001185"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 498], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 548], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 548], ["room_id", 498], ["created_at", "2019-12-06 01:04:31.005503"], ["updated_at", "2019-12-06 01:04:31.005503"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/221” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.007700"], ["last_sign_in_at", "2019-12-06 01:04:31.007700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.008217"], ["id", 548]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"221"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 221], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 221]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PjLWp6T.yYbaMEXKAEXnd.6DxR0SeDsUjwx5JxX.rjjrNDDe7bCO."], ["created_at", "2019-12-06 01:04:31.022266"], ["updated_at", "2019-12-06 01:04:31.022266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.036990"], ["last_sign_in_at", "2019-12-06 01:04:31.036990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.037718"], ["id", 549]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 34ms (Views: 18.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CSvE9.SNcWuaKSOPjSPboO9I5JNbjr1ldkvoszEOr5EQFz6F9fFAi"], ["created_at", "2019-12-06 01:04:31.081403"], ["updated_at", "2019-12-06 01:04:31.081403"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.083590"], ["updated_at", "2019-12-06 01:04:31.083590"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 499], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 550], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 550], ["room_id", 499], ["created_at", "2019-12-06 01:04:31.087691"], ["updated_at", "2019-12-06 01:04:31.087691"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 499], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 550], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 550], ["room_id", 499], ["created_at", "2019-12-06 01:04:31.091660"], ["updated_at", "2019-12-06 01:04:31.091660"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.094060"], ["last_sign_in_at", "2019-12-06 01:04:31.094060"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.094715"], ["id", 550]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 499], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 550], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 550], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NpUCtfIYbdrsfuZfV0HBNuSr16lX4jgYWwnYSI7o5I38hNtTiIoWy"], ["created_at", "2019-12-06 01:04:31.109103"], ["updated_at", "2019-12-06 01:04:31.109103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.111489"], ["updated_at", "2019-12-06 01:04:31.111489"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 500], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 551], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 551], ["room_id", 500], ["created_at", "2019-12-06 01:04:31.115605"], ["updated_at", "2019-12-06 01:04:31.115605"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 500], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 551], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 551], ["room_id", 500], ["created_at", "2019-12-06 01:04:31.120389"], ["updated_at", "2019-12-06 01:04:31.120389"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.122904"], ["last_sign_in_at", "2019-12-06 01:04:31.122904"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.123472"], ["id", 551]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 500], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 551], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 551], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9ED5fV/BaVH/3vRfHgQbSe8ffZas30rb6dqU.az3Hx7GLjkQJpll6"], ["created_at", "2019-12-06 01:04:31.139540"], ["updated_at", "2019-12-06 01:04:31.139540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.141951"], ["updated_at", "2019-12-06 01:04:31.141951"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 501], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 552], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 552], ["room_id", 501], ["created_at", "2019-12-06 01:04:31.146457"], ["updated_at", "2019-12-06 01:04:31.146457"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 501], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 552], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 552], ["room_id", 501], ["created_at", "2019-12-06 01:04:31.150274"], ["updated_at", "2019-12-06 01:04:31.150274"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.152577"], ["last_sign_in_at", "2019-12-06 01:04:31.152577"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.153140"], ["id", 552]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wgq6qR88xElLAf3TbjJbtuUhf5Z2tUGif1XSbfGOiz45qjPwxZBaC"], ["created_at", "2019-12-06 01:04:31.164954"], ["updated_at", "2019-12-06 01:04:31.164954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.167417"], ["updated_at", "2019-12-06 01:04:31.167417"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 502], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 553], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 553], ["room_id", 502], ["created_at", "2019-12-06 01:04:31.172274"], ["updated_at", "2019-12-06 01:04:31.172274"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 502], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 553], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 553], ["room_id", 502], ["created_at", "2019-12-06 01:04:31.176343"], ["updated_at", "2019-12-06 01:04:31.176343"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.178706"], ["last_sign_in_at", "2019-12-06 01:04:31.178706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.179219"], ["id", 553]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aku1X0PjYLuzkrp9FPt.lOdIHGFqPvkeLRJxGIW1h2ZpgBEBztJfe"], ["created_at", "2019-12-06 01:04:31.193518"], ["updated_at", "2019-12-06 01:04:31.193518"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.195949"], ["last_sign_in_at", "2019-12-06 01:04:31.195949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.196506"], ["id", 554]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 63ms (Views: 47.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eqzK3vuADV7TYkDg8DR4T.u1/1YDB8uookpXHQ/quXC3wkxbIP5da"], ["created_at", "2019-12-06 01:04:31.271852"], ["updated_at", "2019-12-06 01:04:31.271852"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.274227"], ["last_sign_in_at", "2019-12-06 01:04:31.274227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.274793"], ["id", 555]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TJ6JJX8Kv/IOWDi73NYe6.Ii9Nev1I6y.bQngGBx82A7F.8WDhs02"], ["created_at", "2019-12-06 01:04:31.285186"], ["updated_at", "2019-12-06 01:04:31.285186"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.288050"], ["last_sign_in_at", "2019-12-06 01:04:31.288050"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.288654"], ["id", 556]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/2b4tstPq2Aq1Wi/7oa.ROnz3UPTuUXW52o76KoTC5na9BUda898O"], ["created_at", "2019-12-06 01:04:31.316843"], ["updated_at", "2019-12-06 01:04:31.316843"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.319325"], ["last_sign_in_at", "2019-12-06 01:04:31.319325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.320016"], ["id", 557]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BZwF0Mv.Slznk/6KDz0Iju1G0VGkN4neZ2MQXw7D8/sw67iCnSFgq"], ["created_at", "2019-12-06 01:04:31.344467"], ["updated_at", "2019-12-06 01:04:31.344467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.347168"], ["updated_at", "2019-12-06 01:04:31.347168"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/503” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.349879"], ["last_sign_in_at", "2019-12-06 01:04:31.349879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.350420"], ["id", 558]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"503"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 503], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QyOghF3h0QtT8d3BTU1ByuH5bjJDyXkCdKOAbDYp8doRSxNDsMKlW"], ["created_at", "2019-12-06 01:04:31.380013"], ["updated_at", "2019-12-06 01:04:31.380013"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.383162"], ["updated_at", "2019-12-06 01:04:31.383162"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/504” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.385918"], ["last_sign_in_at", "2019-12-06 01:04:31.385918"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.386445"], ["id", 559]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"504"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 504], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-user.html.erb (3.0ms)

Completed 200 OK in 36ms (Views: 35.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.430923"], ["updated_at", "2019-12-06 01:04:31.430923"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/505” for 127.0.0.1 at 2019-12-05 22:04:31 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"505"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RtEsS5m0bR3WslkVC9ncb.ewsEflDdAidueWuTK.Hv4Ucdv6d/9/a"], ["created_at", "2019-12-06 01:04:31.442084"], ["updated_at", "2019-12-06 01:04:31.442084"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.444558"], ["updated_at", "2019-12-06 01:04:31.444558"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/506/edit” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.446734"], ["last_sign_in_at", "2019-12-06 01:04:31.446734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.447491"], ["id", 560]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"506"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 506], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 21ms (Views: 4.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.5ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6m.gpcuQHaE29rkK.Wh6YO1uQlYvBcUbMlX/Z8oq/d0awFKDHzc5u"], ["created_at", "2019-12-06 01:04:31.477981"], ["updated_at", "2019-12-06 01:04:31.477981"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.480566"], ["updated_at", "2019-12-06 01:04:31.480566"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/507/edit” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.482945"], ["last_sign_in_at", "2019-12-06 01:04:31.482945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.483516"], ["id", 561]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"507"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 507], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.496242"], ["updated_at", "2019-12-06 01:04:31.496242"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/508” for 127.0.0.1 at 2019-12-05 22:04:31 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"508"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cx8f3Mo2W9a0hQn2X6POyunDvl9hqfBkcOsgBSM5ZB5wH2KkiIWoy"], ["created_at", "2019-12-06 01:04:31.508283"], ["updated_at", "2019-12-06 01:04:31.508283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.511708"], ["last_sign_in_at", "2019-12-06 01:04:31.511708"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.512391"], ["id", 562]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.516245"], ["updated_at", "2019-12-06 01:04:31.516245"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$c1mJT4j1QrDGJZu03EwCFudHXAazkZ8uHnI8LSWlxp3TiB94gq/WO"], ["created_at", "2019-12-06 01:04:31.526436"], ["updated_at", "2019-12-06 01:04:31.526436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.529327"], ["last_sign_in_at", "2019-12-06 01:04:31.529327"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.529796"], ["id", 563]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.533583"], ["updated_at", "2019-12-06 01:04:31.533583"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3LRnTU.whBA3gegdwETjTuM6pUQPwPDc6nI.nAaPEhDM.NrfArGCK"], ["created_at", "2019-12-06 01:04:31.542727"], ["updated_at", "2019-12-06 01:04:31.542727"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.545713"], ["last_sign_in_at", "2019-12-06 01:04:31.545713"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.546186"], ["id", 564]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1ZRTnHmq7AeCGi0/H0FH3Ojc1kBhoyObaGnz.6XCAbStBkYUSDYnW"], ["created_at", "2019-12-06 01:04:31.557668"], ["updated_at", "2019-12-06 01:04:31.557668"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.561031"], ["last_sign_in_at", "2019-12-06 01:04:31.561031"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.561611"], ["id", 565]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fLnf/NZazJlzpPu5rQA6IOD0CTlPqPHRPq.ypsO0W3Lw/c8YmemIm"], ["created_at", "2019-12-06 01:04:31.574661"], ["updated_at", "2019-12-06 01:04:31.574661"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.577519"], ["last_sign_in_at", "2019-12-06 01:04:31.577519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.578244"], ["id", 566]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$puDq9STt4xeH0wNMFvVEZOoii.UL/Undw4Vi0maVpW9M4CsFakF2e"], ["created_at", "2019-12-06 01:04:31.589346"], ["updated_at", "2019-12-06 01:04:31.589346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.591868"], ["updated_at", "2019-12-06 01:04:31.591868"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/511” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.594673"], ["last_sign_in_at", "2019-12-06 01:04:31.594673"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.595182"], ["id", 567]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"511"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 511], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:04:31.599626"], ["id", 511]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/511 Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$60CKpiPxj0i5XSQT5lkH6OqYSxZiNdylYBLC1jaMI5yy2WwiZwFzK"], ["created_at", "2019-12-06 01:04:31.616901"], ["updated_at", "2019-12-06 01:04:31.616901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.619246"], ["updated_at", "2019-12-06 01:04:31.619246"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/512” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.622125"], ["last_sign_in_at", "2019-12-06 01:04:31.622125"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.622724"], ["id", 568]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"512"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 512], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:04:31.626685"], ["id", 512]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/512 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cgs.N0bHPVR7/ipGIL5VzeBOSCH0YVwK/UvMyNRDbCAqP10CMgSgC"], ["created_at", "2019-12-06 01:04:31.635193"], ["updated_at", "2019-12-06 01:04:31.635193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.638134"], ["updated_at", "2019-12-06 01:04:31.638134"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/513” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.640692"], ["last_sign_in_at", "2019-12-06 01:04:31.640692"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.641206"], ["id", 569]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"513"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 513], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zjiFoAm/f82bbnO9A0Kpr.Bn2tO6L7VRpx6sZdmiqP5G4JP/nf.I2"], ["created_at", "2019-12-06 01:04:31.655744"], ["updated_at", "2019-12-06 01:04:31.655744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.657931"], ["updated_at", "2019-12-06 01:04:31.657931"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/514” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.660177"], ["last_sign_in_at", "2019-12-06 01:04:31.660177"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.660717"], ["id", 570]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"514"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 514], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pbRvHIX0Iv0vG65cIpIE/e5Mvtp5R5avAzwBPuJg4KrToiBn2mhLG"], ["created_at", "2019-12-06 01:04:31.674810"], ["updated_at", "2019-12-06 01:04:31.674810"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.677391"], ["last_sign_in_at", "2019-12-06 01:04:31.677391"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.677901"], ["id", 571]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uq2lXCRit9bADiojRnQaaOHij3gwBLXHTrNj7JGxwh0Pflth8KPFq"], ["created_at", "2019-12-06 01:04:31.688558"], ["updated_at", "2019-12-06 01:04:31.688558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.690810"], ["updated_at", "2019-12-06 01:04:31.690810"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/515” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.692674"], ["last_sign_in_at", "2019-12-06 01:04:31.692674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.693184"], ["id", 572]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"515"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 515], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 515]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9zOJajV9JN1gZJ3iYp.b0OaZhSgrAs3FZidiMW9UydqWN1Ubuadri"], ["created_at", "2019-12-06 01:04:31.704529"], ["updated_at", "2019-12-06 01:04:31.704529"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.706917"], ["updated_at", "2019-12-06 01:04:31.706917"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/516” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.709003"], ["last_sign_in_at", "2019-12-06 01:04:31.709003"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.709561"], ["id", 573]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"516"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 516], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 516]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a2aNXs.m6e45RneF4l5kE.9NCEkvW2SAvOPM0Oaz0FGHk6D.Hm9Ai"], ["created_at", "2019-12-06 01:04:31.720992"], ["updated_at", "2019-12-06 01:04:31.720992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.723306"], ["updated_at", "2019-12-06 01:04:31.723306"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/517” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.725186"], ["last_sign_in_at", "2019-12-06 01:04:31.725186"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.725662"], ["id", 574]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"517"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WEzZsOtzsQM4xKrwTLuGCeqH8SpV4crl9LdxN87AaGoB79ZoRjpIO"], ["created_at", "2019-12-06 01:04:31.734878"], ["updated_at", "2019-12-06 01:04:31.734878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:04:31.738115"], ["updated_at", "2019-12-06 01:04:31.738115"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/518” for 127.0.0.1 at 2019-12-05 22:04:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:04:31.741057"], ["last_sign_in_at", "2019-12-06 01:04:31.741057"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:04:31.741593"], ["id", 575]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"518"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:52.456900"], ["updated_at", "2019-12-06 01:08:52.456900"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TMzIVA3CQU8Snj8GWN1wN.uOLAd97vAJYjoj3ZRX/W9BcarnMSuiC"], ["created_at", "2019-12-06 01:08:52.506342"], ["updated_at", "2019-12-06 01:08:52.506342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:52.513641"], ["updated_at", "2019-12-06 01:08:52.513641"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LzF9WlpYw6Ochl.5oHwmLO3zfn9AJ4n9hPQMUbxoskvs/rNrpGb2u"], ["created_at", "2019-12-06 01:08:52.518149"], ["updated_at", "2019-12-06 01:08:52.518149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:52.522985"], ["updated_at", "2019-12-06 01:08:52.522985"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sBMRKtCyT/IiclwGJSFE5.Eya.fi6BBnD8b8siAqZ1ijLxsBHefii"], ["created_at", "2019-12-06 01:08:52.527070"], ["updated_at", "2019-12-06 01:08:52.527070"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:52.533374"], ["updated_at", "2019-12-06 01:08:52.533374"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eYd49m6zkjdQ/R6BruWByejc3C1qi33z8Ypb2g4ebSvbS3cL80a5C"], ["created_at", "2019-12-06 01:08:52.537340"], ["updated_at", "2019-12-06 01:08:52.537340"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:52.542022"], ["updated_at", "2019-12-06 01:08:52.542022"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ckaXt9KZBr9c8wtIjbm1Ourdwb.J5QDGqAjE2E.Q5i7hJcyYqvMGK"], ["created_at", "2019-12-06 01:08:52.546436"], ["updated_at", "2019-12-06 01:08:52.546436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 140ms (Views: 107.6ms | ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$A1c5izznOo3w.Ll3ONVi/.O.wscXJRiU3BMBZIFTECuMfserXZDQa"], ["created_at", "2019-12-06 01:08:53.159326"], ["updated_at", "2019-12-06 01:08:53.159326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.161477"], ["updated_at", "2019-12-06 01:08:53.161477"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.177777"], ["last_sign_in_at", "2019-12-06 01:08:53.177777"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.178483"], ["id", 581]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"524"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 524], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 581], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 581], ["room_id", 524], ["created_at", "2019-12-06 01:08:53.213863"], ["updated_at", "2019-12-06 01:08:53.213863"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 1.9ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 524], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.5Tnqi6OhYay9Hk5JLnYmOPOH8ilZojQzWo/fD5CfBaqoxQ.t688G"], ["created_at", "2019-12-06 01:08:53.222908"], ["updated_at", "2019-12-06 01:08:53.222908"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.224897"], ["updated_at", "2019-12-06 01:08:53.224897"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.226953"], ["last_sign_in_at", "2019-12-06 01:08:53.226953"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.227464"], ["id", 582]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"525"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 525], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 582], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 582], ["room_id", 525], ["created_at", "2019-12-06 01:08:53.232271"], ["updated_at", "2019-12-06 01:08:53.232271"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xtvsnYHWXsiZlatiPJCBje6FOwrkLGMEG8cnr3f9.wc6xL/fZ/zsS"], ["created_at", "2019-12-06 01:08:53.240077"], ["updated_at", "2019-12-06 01:08:53.240077"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.242279"], ["updated_at", "2019-12-06 01:08:53.242279"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.244705"], ["last_sign_in_at", "2019-12-06 01:08:53.244705"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.245295"], ["id", 583]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"526"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 526], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pDtiRrtp1miqbCmeDIUrGuZgHX0nA7UbBcpPkqKdqibk7xgL1Jp9W"], ["created_at", "2019-12-06 01:08:53.254773"], ["updated_at", "2019-12-06 01:08:53.254773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.257119"], ["updated_at", "2019-12-06 01:08:53.257119"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.259619"], ["last_sign_in_at", "2019-12-06 01:08:53.259619"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.260155"], ["id", 584]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"527"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ix5FW4QH3tHlvm1Tn87X8.S8st6cuMh.w2Ug1zcBh5yYl9MVUnbYq"], ["created_at", "2019-12-06 01:08:53.270856"], ["updated_at", "2019-12-06 01:08:53.270856"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.272740"], ["updated_at", "2019-12-06 01:08:53.272740"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 528], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 585], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 585], ["room_id", 528], ["created_at", "2019-12-06 01:08:53.276079"], ["updated_at", "2019-12-06 01:08:53.276079"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/528” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.278358"], ["last_sign_in_at", "2019-12-06 01:08:53.278358"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.279059"], ["id", 585]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"528"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 528], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '528')
Rendered appointments/show.html.erb within layouts/application (20.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 345ms (Views: 327.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fr/Cb0UvyMCYNhW13jCB7uJEAMbOdkv5/ZuMvYXRu8iNyU5Zn53hu"], ["created_at", "2019-12-06 01:08:53.633583"], ["updated_at", "2019-12-06 01:08:53.633583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.635550"], ["updated_at", "2019-12-06 01:08:53.635550"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 529], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 586], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 586], ["room_id", 529], ["created_at", "2019-12-06 01:08:53.639240"], ["updated_at", "2019-12-06 01:08:53.639240"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 529], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 586], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 586], ["room_id", 529], ["created_at", "2019-12-06 01:08:53.642726"], ["updated_at", "2019-12-06 01:08:53.642726"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.644954"], ["last_sign_in_at", "2019-12-06 01:08:53.644954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.645814"], ["id", 586]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 586]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 36ms (Views: 4.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CdKTBGAniQhPIiVjgsCv6eMvxeRL0lV.xnipnv3.75sCSSqAYjC7W"], ["created_at", "2019-12-06 01:08:53.689764"], ["updated_at", "2019-12-06 01:08:53.689764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.692072"], ["updated_at", "2019-12-06 01:08:53.692072"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 530], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 587], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 587], ["room_id", 530], ["created_at", "2019-12-06 01:08:53.696516"], ["updated_at", "2019-12-06 01:08:53.696516"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 530], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 587], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 587], ["room_id", 530], ["created_at", "2019-12-06 01:08:53.700360"], ["updated_at", "2019-12-06 01:08:53.700360"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.702696"], ["last_sign_in_at", "2019-12-06 01:08:53.702696"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.703256"], ["id", 587]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 587]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8nB5qqFKA/XeB/Qrm3vJau9KHoUFfKeN18fRc0SRmoTNNmhX1Jro."], ["created_at", "2019-12-06 01:08:53.716302"], ["updated_at", "2019-12-06 01:08:53.716302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.718626"], ["updated_at", "2019-12-06 01:08:53.718626"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 531], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 588], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 588], ["room_id", 531], ["created_at", "2019-12-06 01:08:53.722484"], ["updated_at", "2019-12-06 01:08:53.722484"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/237” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.724693"], ["last_sign_in_at", "2019-12-06 01:08:53.724693"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.725171"], ["id", 588]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"237"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 237], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 237]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (12.6ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U7WLcnR2R16pmhi44kyKCuvup.10VI9eBnhyd9VuLZFfhcNCD6m7K"], ["created_at", "2019-12-06 01:08:53.751686"], ["updated_at", "2019-12-06 01:08:53.751686"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.754045"], ["last_sign_in_at", "2019-12-06 01:08:53.754045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.754502"], ["id", 589]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RgbRwmz/d4GfQk6pUzF.zOouOp98aeBqXZaeec4AUtkwEBoiUl1KK"], ["created_at", "2019-12-06 01:08:53.797405"], ["updated_at", "2019-12-06 01:08:53.797405"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.799578"], ["updated_at", "2019-12-06 01:08:53.799578"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 532], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 590], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 590], ["room_id", 532], ["created_at", "2019-12-06 01:08:53.803296"], ["updated_at", "2019-12-06 01:08:53.803296"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 532], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 590], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 590], ["room_id", 532], ["created_at", "2019-12-06 01:08:53.807287"], ["updated_at", "2019-12-06 01:08:53.807287"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.809479"], ["last_sign_in_at", "2019-12-06 01:08:53.809479"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.809964"], ["id", 590]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 532], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 590], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 590], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D8S.6fDu.k.w9p.zLUY6dOeQEAWq69NXNOAgWZbuenDUB5y5Y0P7q"], ["created_at", "2019-12-06 01:08:53.823024"], ["updated_at", "2019-12-06 01:08:53.823024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.825158"], ["updated_at", "2019-12-06 01:08:53.825158"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 533], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 591], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 591], ["room_id", 533], ["created_at", "2019-12-06 01:08:53.829023"], ["updated_at", "2019-12-06 01:08:53.829023"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 533], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 591], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 591], ["room_id", 533], ["created_at", "2019-12-06 01:08:53.832951"], ["updated_at", "2019-12-06 01:08:53.832951"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.835229"], ["last_sign_in_at", "2019-12-06 01:08:53.835229"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.835747"], ["id", 591]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 533], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 591], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 591], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oNNJzUTkmcp5YWkrqG88Q.VYwBJ3DIGds8f2yFfB8QHETV2zf/0ni"], ["created_at", "2019-12-06 01:08:53.850301"], ["updated_at", "2019-12-06 01:08:53.850301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.852521"], ["updated_at", "2019-12-06 01:08:53.852521"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 534], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 592], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 592], ["room_id", 534], ["created_at", "2019-12-06 01:08:53.856267"], ["updated_at", "2019-12-06 01:08:53.856267"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 534], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 592], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 592], ["room_id", 534], ["created_at", "2019-12-06 01:08:53.860200"], ["updated_at", "2019-12-06 01:08:53.860200"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.862862"], ["last_sign_in_at", "2019-12-06 01:08:53.862862"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.863440"], ["id", 592]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n1vGwxxIGytqxbgB.nH7M.S/qUCNMoi/y1aB.RjbvDu1fi/ETM.Bu"], ["created_at", "2019-12-06 01:08:53.874603"], ["updated_at", "2019-12-06 01:08:53.874603"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:53.876871"], ["updated_at", "2019-12-06 01:08:53.876871"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 535], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 593], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 593], ["room_id", 535], ["created_at", "2019-12-06 01:08:53.881287"], ["updated_at", "2019-12-06 01:08:53.881287"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 535], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 593], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 593], ["room_id", 535], ["created_at", "2019-12-06 01:08:53.885392"], ["updated_at", "2019-12-06 01:08:53.885392"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.887743"], ["last_sign_in_at", "2019-12-06 01:08:53.887743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.888261"], ["id", 593]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZMX5tbl/sfJusXO4odYY/uAPoP.eSOwtrYDXzE/8u92ooK5ooe0rC"], ["created_at", "2019-12-06 01:08:53.902481"], ["updated_at", "2019-12-06 01:08:53.902481"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.904945"], ["last_sign_in_at", "2019-12-06 01:08:53.904945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.905500"], ["id", 594]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 62ms (Views: 46.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pOgaEzjdjHgJN9wWuuxA.OYj/zd36zolxwM.OVn5yNolr/X7cuN7i"], ["created_at", "2019-12-06 01:08:53.978929"], ["updated_at", "2019-12-06 01:08:53.978929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.981341"], ["last_sign_in_at", "2019-12-06 01:08:53.981341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.981969"], ["id", 595]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NIzYRc/TWDij5zIncXA4CuLpXvqDnMLxU6/C6CT9Gzi5G.0YAtjQO"], ["created_at", "2019-12-06 01:08:53.991292"], ["updated_at", "2019-12-06 01:08:53.991292"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:08:53 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:53.994197"], ["last_sign_in_at", "2019-12-06 01:08:53.994197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:53.994754"], ["id", 596]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qenRv3UOQXmpSQFMacuumuqNZW7Oi/7px2rE68NvpfFLKF5lDCV1i"], ["created_at", "2019-12-06 01:08:54.022645"], ["updated_at", "2019-12-06 01:08:54.022645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.024992"], ["last_sign_in_at", "2019-12-06 01:08:54.024992"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.026001"], ["id", 597]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Womc6COYRkKaxV9wivl6r.HW4uYOfESZDUOccpf6Lm8Yr7tdUeuGm"], ["created_at", "2019-12-06 01:08:54.049837"], ["updated_at", "2019-12-06 01:08:54.049837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.052588"], ["updated_at", "2019-12-06 01:08:54.052588"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/536” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.054955"], ["last_sign_in_at", "2019-12-06 01:08:54.054955"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.055724"], ["id", 598]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"536"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 536], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 22ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.5ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mqqa8gxkOV0ITa/94C4tD.AejhOWBfLdkvEs79EEZ.hE33otHeog."], ["created_at", "2019-12-06 01:08:54.087053"], ["updated_at", "2019-12-06 01:08:54.087053"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.089925"], ["updated_at", "2019-12-06 01:08:54.089925"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/537” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.092625"], ["last_sign_in_at", "2019-12-06 01:08:54.092625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.093143"], ["id", 599]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"537"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 537], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.107181"], ["updated_at", "2019-12-06 01:08:54.107181"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/538” for 127.0.0.1 at 2019-12-05 22:08:54 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"538"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ibk0hGHwmsLMnbK8lFUNbenY0kJM3Xxw0s3H74NLEpvv5ORjIL7f6"], ["created_at", "2019-12-06 01:08:54.118840"], ["updated_at", "2019-12-06 01:08:54.118840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.121322"], ["updated_at", "2019-12-06 01:08:54.121322"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/539/edit” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.124032"], ["last_sign_in_at", "2019-12-06 01:08:54.124032"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.124715"], ["id", 600]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"539"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 539], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 21ms (Views: 4.5ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EDtzfsTi8O03raz1ocI7OuDpRCVQ3RXRc8.INQ9pSPi6XbG9GGi36"], ["created_at", "2019-12-06 01:08:54.154772"], ["updated_at", "2019-12-06 01:08:54.154772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.157128"], ["updated_at", "2019-12-06 01:08:54.157128"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/540/edit” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.159645"], ["last_sign_in_at", "2019-12-06 01:08:54.159645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.160196"], ["id", 601]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"540"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 540], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.172835"], ["updated_at", "2019-12-06 01:08:54.172835"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/541” for 127.0.0.1 at 2019-12-05 22:08:54 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"541"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9mNB5z4tMP7IasNQZR.s1uafxzxtysNj2sD.Oejpokh//LA8tc5OS"], ["created_at", "2019-12-06 01:08:54.185898"], ["updated_at", "2019-12-06 01:08:54.185898"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.189105"], ["last_sign_in_at", "2019-12-06 01:08:54.189105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.189914"], ["id", 602]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.194030"], ["updated_at", "2019-12-06 01:08:54.194030"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NQ9laJ3oUOOkMiAVppS/.ezmelXkry5.xjQ/R6H1aQdHNSpGMVbva"], ["created_at", "2019-12-06 01:08:54.204487"], ["updated_at", "2019-12-06 01:08:54.204487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.207374"], ["last_sign_in_at", "2019-12-06 01:08:54.207374"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.208109"], ["id", 603]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.211954"], ["updated_at", "2019-12-06 01:08:54.211954"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GfCatChtnMu4yz.AuKtgKu/mGiAw7pzPdHWoX/fqCaQ1P6QDTXmjC"], ["created_at", "2019-12-06 01:08:54.221179"], ["updated_at", "2019-12-06 01:08:54.221179"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.223806"], ["last_sign_in_at", "2019-12-06 01:08:54.223806"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.224291"], ["id", 604]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ILeniH71EkvC5PtMckgh.O/KBT5y0ZJoLGseHZfxi0HSbFSRnEufS"], ["created_at", "2019-12-06 01:08:54.236272"], ["updated_at", "2019-12-06 01:08:54.236272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.239266"], ["last_sign_in_at", "2019-12-06 01:08:54.239266"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.239793"], ["id", 605]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l5/p4TRvzCWXKi53osio1O7afnSTUH7seH53V0bGR5H/UI96//uiG"], ["created_at", "2019-12-06 01:08:54.252537"], ["updated_at", "2019-12-06 01:08:54.252537"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.255380"], ["last_sign_in_at", "2019-12-06 01:08:54.255380"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.255879"], ["id", 606]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WjnvZEQGYJhFqZyKpawTseisAS8SLHurzrGmZXcmy8f71LcBaFTlW"], ["created_at", "2019-12-06 01:08:54.267721"], ["updated_at", "2019-12-06 01:08:54.267721"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.270611"], ["updated_at", "2019-12-06 01:08:54.270611"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/544” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.273479"], ["last_sign_in_at", "2019-12-06 01:08:54.273479"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.274309"], ["id", 607]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"544"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 544], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:08:54.278952"], ["id", 544]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/544 Completed 302 Found in 13ms (ActiveRecord: 1.1ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pQgm33tZz46JrQjlM1VLheMNGeR7dBNe4dvonpok/wl.7E7eUJJ/e"], ["created_at", "2019-12-06 01:08:54.297194"], ["updated_at", "2019-12-06 01:08:54.297194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.299392"], ["updated_at", "2019-12-06 01:08:54.299392"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/545” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.301800"], ["last_sign_in_at", "2019-12-06 01:08:54.301800"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.302347"], ["id", 608]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"545"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 545], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:08:54.306101"], ["id", 545]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/545 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2FIELBWadRxfgIkpmZTdxutsoYqDXq8owdCEDe6DzKpmaSgfkSLym"], ["created_at", "2019-12-06 01:08:54.315027"], ["updated_at", "2019-12-06 01:08:54.315027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.317273"], ["updated_at", "2019-12-06 01:08:54.317273"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/546” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.319440"], ["last_sign_in_at", "2019-12-06 01:08:54.319440"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.320000"], ["id", 609]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"546"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 546], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2rsDGyNxqw6WljNcJozDouJcxzfn6GMwhNIe4evNSAm0/xoeLCQL2"], ["created_at", "2019-12-06 01:08:54.333992"], ["updated_at", "2019-12-06 01:08:54.333992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.336260"], ["updated_at", "2019-12-06 01:08:54.336260"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/547” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.338658"], ["last_sign_in_at", "2019-12-06 01:08:54.338658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.339191"], ["id", 610]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"547"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 547], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$x2nxKXs7JNaN33Evg3wbsuGSNXB00aC8SvMcGz5M1SOK1oZdniQ9i"], ["created_at", "2019-12-06 01:08:54.354355"], ["updated_at", "2019-12-06 01:08:54.354355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.356964"], ["last_sign_in_at", "2019-12-06 01:08:54.356964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.357545"], ["id", 611]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IMG0c43rX/n88oGVYM2s5upv3jR0aFn/ky8Hdn/IHKSzV4pKcuvE2"], ["created_at", "2019-12-06 01:08:54.367779"], ["updated_at", "2019-12-06 01:08:54.367779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.370069"], ["updated_at", "2019-12-06 01:08:54.370069"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/548” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.371999"], ["last_sign_in_at", "2019-12-06 01:08:54.371999"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.372523"], ["id", 612]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"548"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 548], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 548]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$raeGeWSpI2hk02XnXd.7FO0SVUkpqz7csFcpyxS01EyGel8B47lLO"], ["created_at", "2019-12-06 01:08:54.383729"], ["updated_at", "2019-12-06 01:08:54.383729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.385908"], ["updated_at", "2019-12-06 01:08:54.385908"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/549” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.387759"], ["last_sign_in_at", "2019-12-06 01:08:54.387759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.388244"], ["id", 613]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"549"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 549], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 549]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f6slan.bpC1QPz49tlPmDOz/ZooNkz.DSfjRyVvB/c53xTj2P1T8O"], ["created_at", "2019-12-06 01:08:54.399888"], ["updated_at", "2019-12-06 01:08:54.399888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.402223"], ["updated_at", "2019-12-06 01:08:54.402223"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/550” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.404093"], ["last_sign_in_at", "2019-12-06 01:08:54.404093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.404562"], ["id", 614]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"550"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LKVSbTqLJQH.KGbv9RldTeX8bS/m3PwYOfzfSyroPMWRlSQ/Th69m"], ["created_at", "2019-12-06 01:08:54.413693"], ["updated_at", "2019-12-06 01:08:54.413693"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:08:54.415917"], ["updated_at", "2019-12-06 01:08:54.415917"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/551” for 127.0.0.1 at 2019-12-05 22:08:54 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:08:54.417916"], ["last_sign_in_at", "2019-12-06 01:08:54.417916"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:08:54.418423"], ["id", 615]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"551"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:03.687794"], ["updated_at", "2019-12-06 01:10:03.687794"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2UQ0wpUU.I0sdiS/GFdcN.MxR9M8iz8ZyvFEHg3vQTCi.1zMJoRR."], ["created_at", "2019-12-06 01:10:03.736404"], ["updated_at", "2019-12-06 01:10:03.736404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:03.743396"], ["updated_at", "2019-12-06 01:10:03.743396"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sQzwdzo/RxmYz2f/HwFJ5uduG1EQlR2g7EFOD.HvRq5UTl51yITI6"], ["created_at", "2019-12-06 01:10:03.747648"], ["updated_at", "2019-12-06 01:10:03.747648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:03.752570"], ["updated_at", "2019-12-06 01:10:03.752570"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NsfhzCZJXG6R7C4aWgAWC./s7a5uFUNoJoLT5X6gkQH1sOgWE07Py"], ["created_at", "2019-12-06 01:10:03.756584"], ["updated_at", "2019-12-06 01:10:03.756584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:03.762090"], ["updated_at", "2019-12-06 01:10:03.762090"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zoenDbiJWsFLH//ox68uYunhBVhSdI08xUqDwAgTgB6GDhxbys2Fe"], ["created_at", "2019-12-06 01:10:03.766519"], ["updated_at", "2019-12-06 01:10:03.766519"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:03.771571"], ["updated_at", "2019-12-06 01:10:03.771571"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WRodQLXFDgB5ITDBOcjaJurWb.3H0tTfSNGc4/l8aXt4Zhw08mH3e"], ["created_at", "2019-12-06 01:10:03.775685"], ["updated_at", "2019-12-06 01:10:03.775685"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 143ms (Views: 110.2ms | ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$u4248VOTItEaWU4V/rkMNeG0HxW35klu2ldR5xb0AJ6uBlKN9Hywy"], ["created_at", "2019-12-06 01:10:04.399455"], ["updated_at", "2019-12-06 01:10:04.399455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.401777"], ["updated_at", "2019-12-06 01:10:04.401777"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.418169"], ["last_sign_in_at", "2019-12-06 01:10:04.418169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.418900"], ["id", 621]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"557"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 557], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 621], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 621], ["room_id", 557], ["created_at", "2019-12-06 01:10:04.455428"], ["updated_at", "2019-12-06 01:10:04.455428"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 2.0ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 557], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IlvipZfxVWtdeh7SOLdLau.CnanxYngnSaW2Vkj5C1ovx2MIOLbye"], ["created_at", "2019-12-06 01:10:04.465271"], ["updated_at", "2019-12-06 01:10:04.465271"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.467592"], ["updated_at", "2019-12-06 01:10:04.467592"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.470079"], ["last_sign_in_at", "2019-12-06 01:10:04.470079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.470624"], ["id", 622]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"558"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 558], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 622], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 622], ["room_id", 558], ["created_at", "2019-12-06 01:10:04.475611"], ["updated_at", "2019-12-06 01:10:04.475611"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$14F6trpFZZdRpGpgnTSpZ.2cO1JjKuCSBF2CzFqKUSaKEz2QXWMdK"], ["created_at", "2019-12-06 01:10:04.484550"], ["updated_at", "2019-12-06 01:10:04.484550"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.486647"], ["updated_at", "2019-12-06 01:10:04.486647"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.488946"], ["last_sign_in_at", "2019-12-06 01:10:04.488946"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.489410"], ["id", 623]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"559"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 559], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gVbEv3kvD63kIIkc1kgxbeiws2/wOCBOUMnKJ7kO2HUZOba0HfWBi"], ["created_at", "2019-12-06 01:10:04.498184"], ["updated_at", "2019-12-06 01:10:04.498184"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.500465"], ["updated_at", "2019-12-06 01:10:04.500465"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.502638"], ["last_sign_in_at", "2019-12-06 01:10:04.502638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.503207"], ["id", 624]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"560"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$g3c20hTPQLYExlIUGGESQuWQ4TrCgaHHlVOGr13uRfGm1krRGmoWy"], ["created_at", "2019-12-06 01:10:04.512450"], ["updated_at", "2019-12-06 01:10:04.512450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.514777"], ["updated_at", "2019-12-06 01:10:04.514777"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 561], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 625], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 625], ["room_id", 561], ["created_at", "2019-12-06 01:10:04.518505"], ["updated_at", "2019-12-06 01:10:04.518505"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/561” for 127.0.0.1 at 2019-12-05 22:10:04 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.520822"], ["last_sign_in_at", "2019-12-06 01:10:04.520822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.521271"], ["id", 625]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"561"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 561], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '561')
Rendered appointments/show.html.erb within layouts/application (20.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 346ms (Views: 329.1ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$d//Lm/JjJZG2acaL9Ws5Oe/smdaNiz95aJYuC3V7tzxl0L5idBvFe"], ["created_at", "2019-12-06 01:10:04.876943"], ["updated_at", "2019-12-06 01:10:04.876943"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.879284"], ["updated_at", "2019-12-06 01:10:04.879284"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 562], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 626], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 626], ["room_id", 562], ["created_at", "2019-12-06 01:10:04.883775"], ["updated_at", "2019-12-06 01:10:04.883775"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 562], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 626], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 626], ["room_id", 562], ["created_at", "2019-12-06 01:10:04.887799"], ["updated_at", "2019-12-06 01:10:04.887799"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.890110"], ["last_sign_in_at", "2019-12-06 01:10:04.890110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.890631"], ["id", 626]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 626]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NeoPjeqoQpzf1kqAHBTZgedYW76Ww1Y0ZGB08G8qq9IY7t/AvZNWm"], ["created_at", "2019-12-06 01:10:04.933914"], ["updated_at", "2019-12-06 01:10:04.933914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.935966"], ["updated_at", "2019-12-06 01:10:04.935966"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 563], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 627], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 627], ["room_id", 563], ["created_at", "2019-12-06 01:10:04.939586"], ["updated_at", "2019-12-06 01:10:04.939586"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 563], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 627], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 627], ["room_id", 563], ["created_at", "2019-12-06 01:10:04.942949"], ["updated_at", "2019-12-06 01:10:04.942949"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.944964"], ["last_sign_in_at", "2019-12-06 01:10:04.944964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.945455"], ["id", 627]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 627]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$x8/VoyXV6uJ7jepk4bUZmOgnn9DdHzOQZXu3wX04VZnA39x0TT8mO"], ["created_at", "2019-12-06 01:10:04.958067"], ["updated_at", "2019-12-06 01:10:04.958067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:04.960110"], ["updated_at", "2019-12-06 01:10:04.960110"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 564], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 628], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 628], ["room_id", 564], ["created_at", "2019-12-06 01:10:04.963835"], ["updated_at", "2019-12-06 01:10:04.963835"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/253” for 127.0.0.1 at 2019-12-05 22:10:04 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.966183"], ["last_sign_in_at", "2019-12-06 01:10:04.966183"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.966703"], ["id", 628]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"253"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 253], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 253]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 15ms (ActiveRecord: 1.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vMB3V0/DGB4VJZR.3OT0vObCXFJeNOMLl2DcfW7SMvSPWmfRY1biO"], ["created_at", "2019-12-06 01:10:04.991989"], ["updated_at", "2019-12-06 01:10:04.991989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:10:04 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:04.994149"], ["last_sign_in_at", "2019-12-06 01:10:04.994149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:04.994685"], ["id", 629]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 35ms (Views: 18.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1pcVY0.uONDsROpfUDxqHuA.qRtyvaSgkoJCjyPFR.wOSwgLjqWoS"], ["created_at", "2019-12-06 01:10:05.038792"], ["updated_at", "2019-12-06 01:10:05.038792"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.041009"], ["updated_at", "2019-12-06 01:10:05.041009"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 565], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 630], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 630], ["room_id", 565], ["created_at", "2019-12-06 01:10:05.044817"], ["updated_at", "2019-12-06 01:10:05.044817"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 565], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 630], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 630], ["room_id", 565], ["created_at", "2019-12-06 01:10:05.049039"], ["updated_at", "2019-12-06 01:10:05.049039"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.051394"], ["last_sign_in_at", "2019-12-06 01:10:05.051394"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.051892"], ["id", 630]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 565], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 630], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 630], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.Om272R67UBE.FLoBicbQeBHFHQVzkUjvGx3SNBcWJqUlpT1xrqRS"], ["created_at", "2019-12-06 01:10:05.065743"], ["updated_at", "2019-12-06 01:10:05.065743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.067999"], ["updated_at", "2019-12-06 01:10:05.067999"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 566], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 631], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 631], ["room_id", 566], ["created_at", "2019-12-06 01:10:05.071831"], ["updated_at", "2019-12-06 01:10:05.071831"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 566], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 631], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 631], ["room_id", 566], ["created_at", "2019-12-06 01:10:05.075683"], ["updated_at", "2019-12-06 01:10:05.075683"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.078115"], ["last_sign_in_at", "2019-12-06 01:10:05.078115"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.078627"], ["id", 631]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 566], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 631], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 631], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T50/LraGFaCJ2mwUFdAnDuniX.3dfAEKGLS05mTBUaWv3413rC71a"], ["created_at", "2019-12-06 01:10:05.093339"], ["updated_at", "2019-12-06 01:10:05.093339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.095594"], ["updated_at", "2019-12-06 01:10:05.095594"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 567], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 632], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 632], ["room_id", 567], ["created_at", "2019-12-06 01:10:05.100251"], ["updated_at", "2019-12-06 01:10:05.100251"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 567], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 632], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 632], ["room_id", 567], ["created_at", "2019-12-06 01:10:05.104323"], ["updated_at", "2019-12-06 01:10:05.104323"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.106785"], ["last_sign_in_at", "2019-12-06 01:10:05.106785"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.107334"], ["id", 632]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qxoJrLMu8G516WiiumvNrOnI.UA7.hdzuA/0tyDO0yi3wmhJpIQPy"], ["created_at", "2019-12-06 01:10:05.118988"], ["updated_at", "2019-12-06 01:10:05.118988"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.121282"], ["updated_at", "2019-12-06 01:10:05.121282"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 568], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 633], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 633], ["room_id", 568], ["created_at", "2019-12-06 01:10:05.125249"], ["updated_at", "2019-12-06 01:10:05.125249"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 568], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 633], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 633], ["room_id", 568], ["created_at", "2019-12-06 01:10:05.129404"], ["updated_at", "2019-12-06 01:10:05.129404"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.132189"], ["last_sign_in_at", "2019-12-06 01:10:05.132189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.132757"], ["id", 633]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5PWXs1Cz3KmpFKmkTSL/LeDFsY0T4v3nbXliJ9TqM8vbYHltkcl66"], ["created_at", "2019-12-06 01:10:05.146564"], ["updated_at", "2019-12-06 01:10:05.146564"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.149561"], ["last_sign_in_at", "2019-12-06 01:10:05.149561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.150155"], ["id", 634]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 65ms (Views: 47.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kRiV2T2/oKEo8Jbi1l7jqeBdW0zwPWrd2CU7gtT3Kc4vbW.E7p/ky"], ["created_at", "2019-12-06 01:10:05.227580"], ["updated_at", "2019-12-06 01:10:05.227580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.229942"], ["last_sign_in_at", "2019-12-06 01:10:05.229942"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.230570"], ["id", 635]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2gFxQ.azfHCDgUVpaArNXOiFvBEAqWNeNZq3M4DA.xI1dLmrvg27S"], ["created_at", "2019-12-06 01:10:05.240840"], ["updated_at", "2019-12-06 01:10:05.240840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.243375"], ["last_sign_in_at", "2019-12-06 01:10:05.243375"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.243924"], ["id", 636]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 21ms (Views: 4.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s9xYB/iUUwSzZy6qxMnwYeE80lPPcU8j9xayAU0EegrCbYebsmPJu"], ["created_at", "2019-12-06 01:10:05.273883"], ["updated_at", "2019-12-06 01:10:05.273883"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.276395"], ["last_sign_in_at", "2019-12-06 01:10:05.276395"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.277139"], ["id", 637]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7hVyTNaDD70S3qQ354JgCemK5t67bomdZZoXMu7AAKQNDmMWAi4k6"], ["created_at", "2019-12-06 01:10:05.301719"], ["updated_at", "2019-12-06 01:10:05.301719"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.304325"], ["updated_at", "2019-12-06 01:10:05.304325"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/569” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.307034"], ["last_sign_in_at", "2019-12-06 01:10:05.307034"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.307659"], ["id", 638]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"569"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 569], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 19ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ROOuFa7J3/AKELxqpEaFnuIbn3QG15y3jdoE4PcPjQextRrB8oTJ."], ["created_at", "2019-12-06 01:10:05.339243"], ["updated_at", "2019-12-06 01:10:05.339243"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.341831"], ["updated_at", "2019-12-06 01:10:05.341831"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/570” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.343921"], ["last_sign_in_at", "2019-12-06 01:10:05.343921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.344816"], ["id", 639]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"570"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 570], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.355719"], ["updated_at", "2019-12-06 01:10:05.355719"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/571” for 127.0.0.1 at 2019-12-05 22:10:05 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"571"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ydlnzr1eouAZFgs.SIpVdeDLY6hOV943p5ipwqjd.xBtc8XnEccra"], ["created_at", "2019-12-06 01:10:05.366806"], ["updated_at", "2019-12-06 01:10:05.366806"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.369425"], ["updated_at", "2019-12-06 01:10:05.369425"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/572/edit” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.371528"], ["last_sign_in_at", "2019-12-06 01:10:05.371528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.372211"], ["id", 640]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"572"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 572], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 22ms (Views: 4.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e3ft2VwVfN54bJ9sqv53he0Z8kQQgtotYDwKPEC110zaoTk.OA2ye"], ["created_at", "2019-12-06 01:10:05.402812"], ["updated_at", "2019-12-06 01:10:05.402812"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.405476"], ["updated_at", "2019-12-06 01:10:05.405476"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/573/edit” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.407936"], ["last_sign_in_at", "2019-12-06 01:10:05.407936"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.408622"], ["id", 641]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"573"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 573], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.420812"], ["updated_at", "2019-12-06 01:10:05.420812"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/574” for 127.0.0.1 at 2019-12-05 22:10:05 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"574"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r6oEZ1hCga719FnJzebEFu/7NOnpZseqqp23BjmRAo88bK9zGcnL2"], ["created_at", "2019-12-06 01:10:05.433443"], ["updated_at", "2019-12-06 01:10:05.433443"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.436827"], ["last_sign_in_at", "2019-12-06 01:10:05.436827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.437435"], ["id", 642]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.441596"], ["updated_at", "2019-12-06 01:10:05.441596"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$etlyQIvKBT//s9EwJeN64OgwupdaEGPs5nIhhUY1HWGrEBOtPg8WK"], ["created_at", "2019-12-06 01:10:05.451847"], ["updated_at", "2019-12-06 01:10:05.451847"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.455067"], ["last_sign_in_at", "2019-12-06 01:10:05.455067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.455723"], ["id", 643]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.459487"], ["updated_at", "2019-12-06 01:10:05.459487"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Zg3XaEtjObuflocarrUSkeudrJmcUNNWItGjFb9DNhb2j9tO4WeMm"], ["created_at", "2019-12-06 01:10:05.468769"], ["updated_at", "2019-12-06 01:10:05.468769"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.472095"], ["last_sign_in_at", "2019-12-06 01:10:05.472095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.472673"], ["id", 644]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nQuGI.7I.YvAz.G8POfNzObhr4v2YJDELSKUrXk/Ydf5tsx7GetAu"], ["created_at", "2019-12-06 01:10:05.485510"], ["updated_at", "2019-12-06 01:10:05.485510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.488740"], ["last_sign_in_at", "2019-12-06 01:10:05.488740"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.489264"], ["id", 645]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$agaYAN7d9TRlqTMMdZTKMuJeRczR8W9FSJxX6hYoJRxGo12LSfopO"], ["created_at", "2019-12-06 01:10:05.501873"], ["updated_at", "2019-12-06 01:10:05.501873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.504841"], ["last_sign_in_at", "2019-12-06 01:10:05.504841"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.505297"], ["id", 646]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4.EngtU9nN999jLGVLFZYOaDdPlDjxzq4x4YSXvul/OWd2nFMjDuu"], ["created_at", "2019-12-06 01:10:05.517222"], ["updated_at", "2019-12-06 01:10:05.517222"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.528124"], ["updated_at", "2019-12-06 01:10:05.528124"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/577” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.530919"], ["last_sign_in_at", "2019-12-06 01:10:05.530919"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.531604"], ["id", 647]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"577"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 577], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:10:05.535702"], ["id", 577]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/577 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NvZzUkfwJfXjrieCwPxRrOrpc9GkDR7KGjedt0MtFFBoEbvv82rpG"], ["created_at", "2019-12-06 01:10:05.543674"], ["updated_at", "2019-12-06 01:10:05.543674"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.545908"], ["updated_at", "2019-12-06 01:10:05.545908"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/578” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.548664"], ["last_sign_in_at", "2019-12-06 01:10:05.548664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.549365"], ["id", 648]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"578"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 578], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:10:05.553207"], ["id", 578]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/578 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bugsPDgHF9cnxgyfvU/TDeV8oLYwaL05LI1NtZ9xwIvdzkBDhHk4W"], ["created_at", "2019-12-06 01:10:05.562143"], ["updated_at", "2019-12-06 01:10:05.562143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.564931"], ["updated_at", "2019-12-06 01:10:05.564931"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/579” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.567521"], ["last_sign_in_at", "2019-12-06 01:10:05.567521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.568045"], ["id", 649]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"579"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 579], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9KKFZA2kUSkH3IeusvKZA.mscRTxUW14GUm3IGv4SmfjEX4Ou3K.C"], ["created_at", "2019-12-06 01:10:05.581935"], ["updated_at", "2019-12-06 01:10:05.581935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.584221"], ["updated_at", "2019-12-06 01:10:05.584221"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/580” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.586586"], ["last_sign_in_at", "2019-12-06 01:10:05.586586"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.587106"], ["id", 650]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"580"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 580], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2pcPUYJZKehBy8wA2N1uP.IjQoR5S7ucL68vj8Dbybv4wo72sEesK"], ["created_at", "2019-12-06 01:10:05.601773"], ["updated_at", "2019-12-06 01:10:05.601773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.604350"], ["last_sign_in_at", "2019-12-06 01:10:05.604350"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.604911"], ["id", 651]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GCsCre8Npv8y8daHp6vOXO3b4qkW0mNZDGq5IVlwbiJAQu8nTnFS6"], ["created_at", "2019-12-06 01:10:05.614890"], ["updated_at", "2019-12-06 01:10:05.614890"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.617280"], ["updated_at", "2019-12-06 01:10:05.617280"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/581” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.619215"], ["last_sign_in_at", "2019-12-06 01:10:05.619215"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.619722"], ["id", 652]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"581"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 581], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 581]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6myysIMRN2QL9sh80JwmLO6thDQqlPyNPwGM.3m1jyx3rNM0stG0y"], ["created_at", "2019-12-06 01:10:05.630715"], ["updated_at", "2019-12-06 01:10:05.630715"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.633079"], ["updated_at", "2019-12-06 01:10:05.633079"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/582” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.634949"], ["last_sign_in_at", "2019-12-06 01:10:05.634949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.635462"], ["id", 653]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"582"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 582], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 582]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dQ.R9AwW3Wnt4SVwKDcdju1bfoT3zUHgZSWB5k54gmuZfu52SS5wG"], ["created_at", "2019-12-06 01:10:05.646644"], ["updated_at", "2019-12-06 01:10:05.646644"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.649340"], ["updated_at", "2019-12-06 01:10:05.649340"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/583” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.651264"], ["last_sign_in_at", "2019-12-06 01:10:05.651264"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.651770"], ["id", 654]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"583"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tWzcqseRHsIfj3O0Yi4Os.iSaQOuXqt9Nyc0UW4BmUPnUsXcHCodK"], ["created_at", "2019-12-06 01:10:05.660523"], ["updated_at", "2019-12-06 01:10:05.660523"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:10:05.662730"], ["updated_at", "2019-12-06 01:10:05.662730"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/584” for 127.0.0.1 at 2019-12-05 22:10:05 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:10:05.665080"], ["last_sign_in_at", "2019-12-06 01:10:05.665080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:10:05.665717"], ["id", 655]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"584"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:19.698931"], ["updated_at", "2019-12-06 01:11:19.698931"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MkXLMA3zyuSTigaMXph2iO6sgUG8EK5L6HEWT4TCPEDbHdbvD4YYG"], ["created_at", "2019-12-06 01:11:19.748820"], ["updated_at", "2019-12-06 01:11:19.748820"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:19.755390"], ["updated_at", "2019-12-06 01:11:19.755390"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2cU3hIlfwN7luWZlO27Tm.1Qms4H2n9U8eq97MCtMjSvJcQ1ElnRG"], ["created_at", "2019-12-06 01:11:19.759814"], ["updated_at", "2019-12-06 01:11:19.759814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:19.764287"], ["updated_at", "2019-12-06 01:11:19.764287"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SXAlOOzo14kYKdDGFXwdFeJqy2cdM8Vgk/w5oQQ9p4ovTixsZcEBG"], ["created_at", "2019-12-06 01:11:19.768337"], ["updated_at", "2019-12-06 01:11:19.768337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:19.773697"], ["updated_at", "2019-12-06 01:11:19.773697"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fYcJPiza0PyyQK1fZVuee.hjuP4B49GmDq1n9x71ruwUIXtoAk9U6"], ["created_at", "2019-12-06 01:11:19.777547"], ["updated_at", "2019-12-06 01:11:19.777547"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:19.782133"], ["updated_at", "2019-12-06 01:11:19.782133"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1PsqN6RLCV/jF7jd6X80JOKMYRb6CBt5CDIvPZSLbUTdYqqtNw2Cy"], ["created_at", "2019-12-06 01:11:19.786375"], ["updated_at", "2019-12-06 01:11:19.786375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 140ms (Views: 107.8ms | ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SHruDhFC/tV6.S3OTzBxRO1oD.kkV4L4gDghAsp5/KUAZs8QJsE3K"], ["created_at", "2019-12-06 01:11:20.405945"], ["updated_at", "2019-12-06 01:11:20.405945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.408171"], ["updated_at", "2019-12-06 01:11:20.408171"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.423905"], ["last_sign_in_at", "2019-12-06 01:11:20.423905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.424538"], ["id", 661]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"590"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 590], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 661], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 661], ["room_id", 590], ["created_at", "2019-12-06 01:11:20.459655"], ["updated_at", "2019-12-06 01:11:20.459655"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 24ms (ActiveRecord: 2.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 590], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.5KeY3iWayty7mOrrNPNOeyjW5/DBFq2JJNsivV0lLtcMn.yyi2UO"], ["created_at", "2019-12-06 01:11:20.470427"], ["updated_at", "2019-12-06 01:11:20.470427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.472991"], ["updated_at", "2019-12-06 01:11:20.472991"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.475441"], ["last_sign_in_at", "2019-12-06 01:11:20.475441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.476022"], ["id", 662]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"591"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 591], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 662], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 662], ["room_id", 591], ["created_at", "2019-12-06 01:11:20.480902"], ["updated_at", "2019-12-06 01:11:20.480902"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YfL6QBb2i6lUC5ojqldT1erje0TuKznXahdAXkpWhHiiLzD.MgxEC"], ["created_at", "2019-12-06 01:11:20.489571"], ["updated_at", "2019-12-06 01:11:20.489571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.491815"], ["updated_at", "2019-12-06 01:11:20.491815"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.494271"], ["last_sign_in_at", "2019-12-06 01:11:20.494271"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.494807"], ["id", 663]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"592"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 592], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pcWFq/ReRJsY5DuZ6bUmzek0kYT0IuKII2PeUzfMIVEGDKbGgGl.a"], ["created_at", "2019-12-06 01:11:20.504153"], ["updated_at", "2019-12-06 01:11:20.504153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.506345"], ["updated_at", "2019-12-06 01:11:20.506345"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.508601"], ["last_sign_in_at", "2019-12-06 01:11:20.508601"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.509116"], ["id", 664]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"593"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$A1qk0yw/GpjWtKyy1XGGCe9iEZLqN0zUP01CqJk3SL543STuQfxDm"], ["created_at", "2019-12-06 01:11:20.519464"], ["updated_at", "2019-12-06 01:11:20.519464"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.521622"], ["updated_at", "2019-12-06 01:11:20.521622"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 594], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 665], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 665], ["room_id", 594], ["created_at", "2019-12-06 01:11:20.526083"], ["updated_at", "2019-12-06 01:11:20.526083"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/594” for 127.0.0.1 at 2019-12-05 22:11:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.528557"], ["last_sign_in_at", "2019-12-06 01:11:20.528557"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.529063"], ["id", 665]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"594"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 594], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '594')
Rendered appointments/show.html.erb within layouts/application (21.9ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 347ms (Views: 330.1ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XN5g96J268JWnO6p2WxocOsQyIaQhPENk.fD/L/4qlcWaE22NmfoS"], ["created_at", "2019-12-06 01:11:20.886755"], ["updated_at", "2019-12-06 01:11:20.886755"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.889015"], ["updated_at", "2019-12-06 01:11:20.889015"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 595], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 666], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 666], ["room_id", 595], ["created_at", "2019-12-06 01:11:20.893042"], ["updated_at", "2019-12-06 01:11:20.893042"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 595], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 666], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 666], ["room_id", 595], ["created_at", "2019-12-06 01:11:20.896638"], ["updated_at", "2019-12-06 01:11:20.896638"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.898658"], ["last_sign_in_at", "2019-12-06 01:11:20.898658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.899101"], ["id", 666]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 666]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xC.hW2ivtIIBIzb4D8xN7eGr7DnCVHWugGAe9rlx9CuWwlFMYJzbi"], ["created_at", "2019-12-06 01:11:20.942744"], ["updated_at", "2019-12-06 01:11:20.942744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.945003"], ["updated_at", "2019-12-06 01:11:20.945003"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 596], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 667], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 667], ["room_id", 596], ["created_at", "2019-12-06 01:11:20.948881"], ["updated_at", "2019-12-06 01:11:20.948881"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 596], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 667], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 667], ["room_id", 596], ["created_at", "2019-12-06 01:11:20.953197"], ["updated_at", "2019-12-06 01:11:20.953197"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:11:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.955531"], ["last_sign_in_at", "2019-12-06 01:11:20.955531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.956040"], ["id", 667]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 667]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oYcgKvQ1JVG9Afw2TaVUtufpCwz97tlDoKtACvPyWqAjmUHoJ1fGC"], ["created_at", "2019-12-06 01:11:20.969533"], ["updated_at", "2019-12-06 01:11:20.969533"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:20.971881"], ["updated_at", "2019-12-06 01:11:20.971881"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 597], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 668], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 668], ["room_id", 597], ["created_at", "2019-12-06 01:11:20.975808"], ["updated_at", "2019-12-06 01:11:20.975808"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/269” for 127.0.0.1 at 2019-12-05 22:11:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:20.978191"], ["last_sign_in_at", "2019-12-06 01:11:20.978191"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:20.978721"], ["id", 668]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"269"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 269], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 269]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2E7vVKCMIWTUnIeT.fQ0cuYby/xc1GS40IlYiC4mlVbK8t6tHcc1m"], ["created_at", "2019-12-06 01:11:21.005167"], ["updated_at", "2019-12-06 01:11:21.005167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.007538"], ["last_sign_in_at", "2019-12-06 01:11:21.007538"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.008172"], ["id", 669]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 34ms (Views: 18.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nxJD0adgaHfuqbqZFIg0puHx8in/5WebmBf/6TbxqJE6ozDGFDMdS"], ["created_at", "2019-12-06 01:11:21.051757"], ["updated_at", "2019-12-06 01:11:21.051757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.054009"], ["updated_at", "2019-12-06 01:11:21.054009"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 598], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 670], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 670], ["room_id", 598], ["created_at", "2019-12-06 01:11:21.057853"], ["updated_at", "2019-12-06 01:11:21.057853"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 598], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 670], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 670], ["room_id", 598], ["created_at", "2019-12-06 01:11:21.061719"], ["updated_at", "2019-12-06 01:11:21.061719"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.064075"], ["last_sign_in_at", "2019-12-06 01:11:21.064075"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.064591"], ["id", 670]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 598], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 670], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 670], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QMTsTNu6HvbVCHGVl/zR2ORyYV.DzbH1ECuoKCUlGscaWoiadFLk."], ["created_at", "2019-12-06 01:11:21.078150"], ["updated_at", "2019-12-06 01:11:21.078150"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.080397"], ["updated_at", "2019-12-06 01:11:21.080397"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 599], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 671], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 671], ["room_id", 599], ["created_at", "2019-12-06 01:11:21.084823"], ["updated_at", "2019-12-06 01:11:21.084823"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 599], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 671], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 671], ["room_id", 599], ["created_at", "2019-12-06 01:11:21.088826"], ["updated_at", "2019-12-06 01:11:21.088826"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.091118"], ["last_sign_in_at", "2019-12-06 01:11:21.091118"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.091621"], ["id", 671]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 599], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 671], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 671], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kmDBqJtf0T3aSE9p70ypB.0Vd0NZFoU8yDfxz2AlDF62uwT5OxXBC"], ["created_at", "2019-12-06 01:11:21.105900"], ["updated_at", "2019-12-06 01:11:21.105900"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.108079"], ["updated_at", "2019-12-06 01:11:21.108079"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 600], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 672], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 672], ["room_id", 600], ["created_at", "2019-12-06 01:11:21.111786"], ["updated_at", "2019-12-06 01:11:21.111786"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 600], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 672], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 672], ["room_id", 600], ["created_at", "2019-12-06 01:11:21.115608"], ["updated_at", "2019-12-06 01:11:21.115608"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.118307"], ["last_sign_in_at", "2019-12-06 01:11:21.118307"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.118842"], ["id", 672]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lz6SGth6H1i/C9T/Wo9gIuWO6ftqol/9jvS93/ssikT/QR0YQ/GuC"], ["created_at", "2019-12-06 01:11:21.129897"], ["updated_at", "2019-12-06 01:11:21.129897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.132121"], ["updated_at", "2019-12-06 01:11:21.132121"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 601], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 673], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 673], ["room_id", 601], ["created_at", "2019-12-06 01:11:21.136431"], ["updated_at", "2019-12-06 01:11:21.136431"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 601], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 673], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 673], ["room_id", 601], ["created_at", "2019-12-06 01:11:21.140395"], ["updated_at", "2019-12-06 01:11:21.140395"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.142807"], ["last_sign_in_at", "2019-12-06 01:11:21.142807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.143330"], ["id", 673]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jDIitjc16y6J0j9fj9/SWORKCcRpAehPv8.y3nzyEA6eJPAM0OEpW"], ["created_at", "2019-12-06 01:11:21.157115"], ["updated_at", "2019-12-06 01:11:21.157115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.159640"], ["last_sign_in_at", "2019-12-06 01:11:21.159640"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.160258"], ["id", 674]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 63ms (Views: 46.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CVw/eHFyVDWEUm6FqBO0WeSopf4G0ku7rrHftxYJTfz5xAiWjps1O"], ["created_at", "2019-12-06 01:11:21.234310"], ["updated_at", "2019-12-06 01:11:21.234310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.236574"], ["last_sign_in_at", "2019-12-06 01:11:21.236574"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.237033"], ["id", 675]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cy3TADehkS4d0WhAFTb40.4LWaY6ReW9fTiaJ7xZozS0RBJDGLA7C"], ["created_at", "2019-12-06 01:11:21.245877"], ["updated_at", "2019-12-06 01:11:21.245877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.248169"], ["last_sign_in_at", "2019-12-06 01:11:21.248169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.248685"], ["id", 676]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$S.TsKwu1nK79bGWVrJF/fOwuuU4xo6pxqeVA6Mrvo8ufRU/hbvb8m"], ["created_at", "2019-12-06 01:11:21.279097"], ["updated_at", "2019-12-06 01:11:21.279097"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.281750"], ["last_sign_in_at", "2019-12-06 01:11:21.281750"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.282289"], ["id", 677]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LFFDNnEdnAS.fnb3MKde0eUvDfnZYP9GgW73WEDB389/YhEtrAEP6"], ["created_at", "2019-12-06 01:11:21.304768"], ["updated_at", "2019-12-06 01:11:21.304768"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.307511"], ["updated_at", "2019-12-06 01:11:21.307511"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/602” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.310081"], ["last_sign_in_at", "2019-12-06 01:11:21.310081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.310551"], ["id", 678]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"602"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 602], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 20ms (Views: 3.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jQMIpcokPGBh0oqHGSwA3ePfqcnjkFOmKuyaz7/9s5BT/C32YmrfO"], ["created_at", "2019-12-06 01:11:21.339782"], ["updated_at", "2019-12-06 01:11:21.339782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.342377"], ["updated_at", "2019-12-06 01:11:21.342377"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/603” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.344671"], ["last_sign_in_at", "2019-12-06 01:11:21.344671"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.345485"], ["id", 679]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"603"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 603], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.359585"], ["updated_at", "2019-12-06 01:11:21.359585"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/604” for 127.0.0.1 at 2019-12-05 22:11:21 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"604"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b0pEXmoOhvv4vjEVEO2tlOzJfOzHa0KPAwBsT0uyfEBlaAU/NzuMe"], ["created_at", "2019-12-06 01:11:21.370700"], ["updated_at", "2019-12-06 01:11:21.370700"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.373177"], ["updated_at", "2019-12-06 01:11:21.373177"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/605/edit” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.375573"], ["last_sign_in_at", "2019-12-06 01:11:21.375573"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.376106"], ["id", 680]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"605"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 605], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 21ms (Views: 4.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Kr7B5o8AOi9umO2rqyOceefUHjXT21HgKNV9OSXAfHs/UmSx/T0UK"], ["created_at", "2019-12-06 01:11:21.406339"], ["updated_at", "2019-12-06 01:11:21.406339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.408824"], ["updated_at", "2019-12-06 01:11:21.408824"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/606/edit” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.411128"], ["last_sign_in_at", "2019-12-06 01:11:21.411128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.411882"], ["id", 681]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"606"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 606], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.423785"], ["updated_at", "2019-12-06 01:11:21.423785"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/607” for 127.0.0.1 at 2019-12-05 22:11:21 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"607"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kps6kP8UZrqr/AaUyKdHyed90JZZdV7m3QMiZad4fyNVFEaqExQ96"], ["created_at", "2019-12-06 01:11:21.435945"], ["updated_at", "2019-12-06 01:11:21.435945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.438676"], ["last_sign_in_at", "2019-12-06 01:11:21.438676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.439439"], ["id", 682]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.443096"], ["updated_at", "2019-12-06 01:11:21.443096"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jsb.dzIJHNYdO9kr1JqdM.SiFOeZAuPxLUItnoucSe79aXxuPE9CC"], ["created_at", "2019-12-06 01:11:21.452546"], ["updated_at", "2019-12-06 01:11:21.452546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.455784"], ["last_sign_in_at", "2019-12-06 01:11:21.455784"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.456276"], ["id", 683]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.459933"], ["updated_at", "2019-12-06 01:11:21.459933"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pWHHxRpLfX6mu0bliz2PFeHvMCEAgpl/UNaP3VNscHNYh7BZhnRFO"], ["created_at", "2019-12-06 01:11:21.468809"], ["updated_at", "2019-12-06 01:11:21.468809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.471560"], ["last_sign_in_at", "2019-12-06 01:11:21.471560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.472152"], ["id", 684]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rPxKR2FL7nDtGbfnS2qH9e2oKc0MHGVWLI5clras8fB9NQOsfPIea"], ["created_at", "2019-12-06 01:11:21.484767"], ["updated_at", "2019-12-06 01:11:21.484767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.487706"], ["last_sign_in_at", "2019-12-06 01:11:21.487706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.488250"], ["id", 685]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eSCsUXyQJeylR1t07zGIEubCutjOtWIxpS031O47FcaDhdjFZ739e"], ["created_at", "2019-12-06 01:11:21.499780"], ["updated_at", "2019-12-06 01:11:21.499780"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.502921"], ["last_sign_in_at", "2019-12-06 01:11:21.502921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.503415"], ["id", 686]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A7sZqfssIBmqSUJNs0SMZehk46honJjrH.ahrjtUofXbQyG.oGSeu"], ["created_at", "2019-12-06 01:11:21.514892"], ["updated_at", "2019-12-06 01:11:21.514892"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.517945"], ["updated_at", "2019-12-06 01:11:21.517945"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/610” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.529457"], ["last_sign_in_at", "2019-12-06 01:11:21.529457"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.530041"], ["id", 687]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"610"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 610], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:11:21.534439"], ["id", 610]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/610 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5y5ra/RXT22gg6IcesEBBeVc.6yP52C4Y0VVjJxHJYnbIwFg.wFcm"], ["created_at", "2019-12-06 01:11:21.542602"], ["updated_at", "2019-12-06 01:11:21.542602"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.544810"], ["updated_at", "2019-12-06 01:11:21.544810"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/611” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.547014"], ["last_sign_in_at", "2019-12-06 01:11:21.547014"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.547538"], ["id", 688]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"611"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 611], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:11:21.551474"], ["id", 611]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/611 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JBzr683DNIkD1X5k.6GekuZUXehtS6KUuLfVbHKKIjqsHHiT4nvmC"], ["created_at", "2019-12-06 01:11:21.559700"], ["updated_at", "2019-12-06 01:11:21.559700"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.561889"], ["updated_at", "2019-12-06 01:11:21.561889"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/612” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.564091"], ["last_sign_in_at", "2019-12-06 01:11:21.564091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.564646"], ["id", 689]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"612"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 612], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qQRi64cbMt6k9IjHABd/6ukkhplvbpm5RoLtMNAeBI8VnmwLAwYk2"], ["created_at", "2019-12-06 01:11:21.578614"], ["updated_at", "2019-12-06 01:11:21.578614"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.580810"], ["updated_at", "2019-12-06 01:11:21.580810"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/613” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.583179"], ["last_sign_in_at", "2019-12-06 01:11:21.583179"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.584028"], ["id", 690]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"613"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 613], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7cFtWzRb1ejVt/E5E6A7.e8Ws.erdtH8jc/U9IAcuJtOIDOMLcQbm"], ["created_at", "2019-12-06 01:11:21.598060"], ["updated_at", "2019-12-06 01:11:21.598060"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.601091"], ["last_sign_in_at", "2019-12-06 01:11:21.601091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.601761"], ["id", 691]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Br9K53ZeI.ohOoe91ISzMurnlSaB6IeaRVMu23tL4FI886Dhu9.Fi"], ["created_at", "2019-12-06 01:11:21.611570"], ["updated_at", "2019-12-06 01:11:21.611570"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.613801"], ["updated_at", "2019-12-06 01:11:21.613801"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/614” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.615836"], ["last_sign_in_at", "2019-12-06 01:11:21.615836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.616517"], ["id", 692]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"614"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 614], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 614]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wNPNhvavUKXg.nwCUz7Mee8yDkMSVXSbGbubIBI2KOVeNm0CvOjoy"], ["created_at", "2019-12-06 01:11:21.628858"], ["updated_at", "2019-12-06 01:11:21.628858"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.631227"], ["updated_at", "2019-12-06 01:11:21.631227"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/615” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.633802"], ["last_sign_in_at", "2019-12-06 01:11:21.633802"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.634495"], ["id", 693]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"615"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 615], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 615]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$verbw8jzaVdNSXGTCuhjiOR.PGqfITRQm1OZ7L.K0G181EO3iiesm"], ["created_at", "2019-12-06 01:11:21.647591"], ["updated_at", "2019-12-06 01:11:21.647591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.650326"], ["updated_at", "2019-12-06 01:11:21.650326"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/616” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.652613"], ["last_sign_in_at", "2019-12-06 01:11:21.652613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.653172"], ["id", 694]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"616"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6zXC1ne/oGa2Nl5nEfXFoebkYtIc1yYpxp7M5TcnS.EAOSewjHlmO"], ["created_at", "2019-12-06 01:11:21.662638"], ["updated_at", "2019-12-06 01:11:21.662638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:11:21.664923"], ["updated_at", "2019-12-06 01:11:21.664923"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/617” for 127.0.0.1 at 2019-12-05 22:11:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:11:21.667460"], ["last_sign_in_at", "2019-12-06 01:11:21.667460"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:11:21.668072"], ["id", 695]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"617"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (5.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:26.348925"], ["updated_at", "2019-12-06 01:15:26.348925"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (9.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (3.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eieEEVwo7zoQuPHRGXpiQeCVjheS0PdTTLmWr9IOQNsy3vEarNLOG"], ["created_at", "2019-12-06 01:15:26.412365"], ["updated_at", "2019-12-06 01:15:26.412365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:26.422259"], ["updated_at", "2019-12-06 01:15:26.422259"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fo1K5l806SO46IhTg62dbeb3BSieAqKMI.KkZDFcdHUvr8iG4/Tc6"], ["created_at", "2019-12-06 01:15:26.426317"], ["updated_at", "2019-12-06 01:15:26.426317"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (2.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 619], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 697], ["LIMIT", 1]]
SQL (6.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 697], ["room_id", 619], ["created_at", "2019-12-06 01:15:26.475547"], ["updated_at", "2019-12-06 01:15:26.475547"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:26.487051"], ["updated_at", "2019-12-06 01:15:26.487051"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yGsTiKrGduMZsarB69NNwuCA1gzlVHR07cMQ1gIh9vFSz3hySq/Cm"], ["created_at", "2019-12-06 01:15:26.491271"], ["updated_at", "2019-12-06 01:15:26.491271"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 620], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 698], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 698], ["room_id", 620], ["created_at", "2019-12-06 01:15:26.495479"], ["updated_at", "2019-12-06 01:15:26.495479"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:26.501777"], ["updated_at", "2019-12-06 01:15:26.501777"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DlLZD9BqcxAFlHgnCCtS0OFcECchPSCCjKpIoQ3JVb96R5syisWUy"], ["created_at", "2019-12-06 01:15:26.506296"], ["updated_at", "2019-12-06 01:15:26.506296"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 621], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 699], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 699], ["room_id", 621], ["created_at", "2019-12-06 01:15:26.510664"], ["updated_at", "2019-12-06 01:15:26.510664"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:26.515489"], ["updated_at", "2019-12-06 01:15:26.515489"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RejWLjOFpJVlt0u4QMskBuSBl1ShENAJDgCnAdoM93zUNcgnWE9nW"], ["created_at", "2019-12-06 01:15:26.519147"], ["updated_at", "2019-12-06 01:15:26.519147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 622], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 700], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 700], ["room_id", 622], ["created_at", "2019-12-06 01:15:26.522954"], ["updated_at", "2019-12-06 01:15:26.522954"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 142ms (Views: 111.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$v0NvB3aON/2YNPNWc1z0wOtxGrvTlcYqoV5lE7uCbTzdB5axVirSW"], ["created_at", "2019-12-06 01:15:27.124002"], ["updated_at", "2019-12-06 01:15:27.124002"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.126100"], ["updated_at", "2019-12-06 01:15:27.126100"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.141787"], ["last_sign_in_at", "2019-12-06 01:15:27.141787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.142399"], ["id", 701]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"623"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 623], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 701], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 701], ["room_id", 623], ["created_at", "2019-12-06 01:15:27.159503"], ["updated_at", "2019-12-06 01:15:27.159503"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (8.0ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 623], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rZluNDtFMLzHdEXu8UGH1.vTVz2ZZtEK9c32kRuplLNL6mvoZDAM2"], ["created_at", "2019-12-06 01:15:27.177830"], ["updated_at", "2019-12-06 01:15:27.177830"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.180345"], ["updated_at", "2019-12-06 01:15:27.180345"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.183298"], ["last_sign_in_at", "2019-12-06 01:15:27.183298"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.183927"], ["id", 702]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"624"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 624], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 702], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 702], ["room_id", 624], ["created_at", "2019-12-06 01:15:27.190204"], ["updated_at", "2019-12-06 01:15:27.190204"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9Q68PxwWSH4xYH6/5e6YGOdK7nFGy.iyn3JPTfGJbXMzk7yyHhLVS"], ["created_at", "2019-12-06 01:15:27.200834"], ["updated_at", "2019-12-06 01:15:27.200834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.203026"], ["updated_at", "2019-12-06 01:15:27.203026"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.205510"], ["last_sign_in_at", "2019-12-06 01:15:27.205510"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.206046"], ["id", 703]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"625"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 625], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TXdA2HzKxk4QOjJYdTkIUO6XuupZ48KtmXOvIDHrjlF.aAtD71Ete"], ["created_at", "2019-12-06 01:15:27.215177"], ["updated_at", "2019-12-06 01:15:27.215177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.217426"], ["updated_at", "2019-12-06 01:15:27.217426"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.219817"], ["last_sign_in_at", "2019-12-06 01:15:27.219817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.220389"], ["id", 704]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"626"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Gb42EONO/JDN2jzo5b6Ig.v9ZTbXMP0X6R7aarXiZIkO8wOXqkYra"], ["created_at", "2019-12-06 01:15:27.230911"], ["updated_at", "2019-12-06 01:15:27.230911"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.233144"], ["updated_at", "2019-12-06 01:15:27.233144"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 627], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 705], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 705], ["room_id", 627], ["created_at", "2019-12-06 01:15:27.237260"], ["updated_at", "2019-12-06 01:15:27.237260"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/627” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.239712"], ["last_sign_in_at", "2019-12-06 01:15:27.239712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.240300"], ["id", 705]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"627"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 627], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '627')
Rendered appointments/show.html.erb within layouts/application (25.0ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 357ms (Views: 339.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6qH3pR15jFiE1xAOtdD8C.pHm/d917786EHAh9mM6gfJ.y1xSApGe"], ["created_at", "2019-12-06 01:15:27.606598"], ["updated_at", "2019-12-06 01:15:27.606598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.609216"], ["updated_at", "2019-12-06 01:15:27.609216"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 628], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 706], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 706], ["room_id", 628], ["created_at", "2019-12-06 01:15:27.612879"], ["updated_at", "2019-12-06 01:15:27.612879"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 628], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 706], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 706], ["room_id", 628], ["created_at", "2019-12-06 01:15:27.616365"], ["updated_at", "2019-12-06 01:15:27.616365"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.618444"], ["last_sign_in_at", "2019-12-06 01:15:27.618444"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.618911"], ["id", 706]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 706]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 34ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wWwwR.bfr.AMSxGb7HpV6elgnCpfY.m4bkDxHZoHsUZtPB.atfBd2"], ["created_at", "2019-12-06 01:15:27.661623"], ["updated_at", "2019-12-06 01:15:27.661623"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.663881"], ["updated_at", "2019-12-06 01:15:27.663881"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 629], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 707], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 707], ["room_id", 629], ["created_at", "2019-12-06 01:15:27.667702"], ["updated_at", "2019-12-06 01:15:27.667702"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 629], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 707], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 707], ["room_id", 629], ["created_at", "2019-12-06 01:15:27.671686"], ["updated_at", "2019-12-06 01:15:27.671686"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.674270"], ["last_sign_in_at", "2019-12-06 01:15:27.674270"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.674824"], ["id", 707]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 707]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HFj4orzZhbv.sNCeMI3ExOkygKuET1NS1PeCx.CKGwSwAU1vSfj52"], ["created_at", "2019-12-06 01:15:27.700561"], ["updated_at", "2019-12-06 01:15:27.700561"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.702862"], ["updated_at", "2019-12-06 01:15:27.702862"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 630], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 708], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 708], ["room_id", 630], ["created_at", "2019-12-06 01:15:27.706813"], ["updated_at", "2019-12-06 01:15:27.706813"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/289” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.709322"], ["last_sign_in_at", "2019-12-06 01:15:27.709322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.709792"], ["id", 708]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"289"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 289], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 289]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qkzyhKSLGjSCKz5jW./yQ.Pm7cziISe1LJTauY8CVFAiAZXRdKMuG"], ["created_at", "2019-12-06 01:15:27.723162"], ["updated_at", "2019-12-06 01:15:27.723162"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.725889"], ["last_sign_in_at", "2019-12-06 01:15:27.725889"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.726501"], ["id", 709]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VL1VAA65wxttD5JhSjSeSeNwGso8sT91GJuSuvdWNjzUMZOygzt4W"], ["created_at", "2019-12-06 01:15:27.769979"], ["updated_at", "2019-12-06 01:15:27.769979"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.772162"], ["updated_at", "2019-12-06 01:15:27.772162"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 631], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 710], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 710], ["room_id", 631], ["created_at", "2019-12-06 01:15:27.776269"], ["updated_at", "2019-12-06 01:15:27.776269"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 631], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 710], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 710], ["room_id", 631], ["created_at", "2019-12-06 01:15:27.780204"], ["updated_at", "2019-12-06 01:15:27.780204"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.782547"], ["last_sign_in_at", "2019-12-06 01:15:27.782547"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.783069"], ["id", 710]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 631], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 710], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 710], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dG8MrNjIXghIFVQJK7GyhePzakAv8xE1fgKQ2L5US9VCJG7ryRSRa"], ["created_at", "2019-12-06 01:15:27.796462"], ["updated_at", "2019-12-06 01:15:27.796462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.798779"], ["updated_at", "2019-12-06 01:15:27.798779"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 632], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 711], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 711], ["room_id", 632], ["created_at", "2019-12-06 01:15:27.802861"], ["updated_at", "2019-12-06 01:15:27.802861"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 632], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 711], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 711], ["room_id", 632], ["created_at", "2019-12-06 01:15:27.806915"], ["updated_at", "2019-12-06 01:15:27.806915"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.809766"], ["last_sign_in_at", "2019-12-06 01:15:27.809766"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.810310"], ["id", 711]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 632], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 711], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 711], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$goz1g1TiMiesR65MMv8xfuQbSTZYLvjTmMa2lySZiOYduldTZy/y6"], ["created_at", "2019-12-06 01:15:27.825107"], ["updated_at", "2019-12-06 01:15:27.825107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.827438"], ["updated_at", "2019-12-06 01:15:27.827438"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 633], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 712], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 712], ["room_id", 633], ["created_at", "2019-12-06 01:15:27.831411"], ["updated_at", "2019-12-06 01:15:27.831411"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 633], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 712], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 712], ["room_id", 633], ["created_at", "2019-12-06 01:15:27.835200"], ["updated_at", "2019-12-06 01:15:27.835200"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.837554"], ["last_sign_in_at", "2019-12-06 01:15:27.837554"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.838095"], ["id", 712]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yiusyd/m6o2H3roNPKzGROgHKlMWebwAK82y7yh06QiFBAOTVHiIy"], ["created_at", "2019-12-06 01:15:27.849902"], ["updated_at", "2019-12-06 01:15:27.849902"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:27.852185"], ["updated_at", "2019-12-06 01:15:27.852185"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 634], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 713], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 713], ["room_id", 634], ["created_at", "2019-12-06 01:15:27.856118"], ["updated_at", "2019-12-06 01:15:27.856118"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 634], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 713], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 713], ["room_id", 634], ["created_at", "2019-12-06 01:15:27.860824"], ["updated_at", "2019-12-06 01:15:27.860824"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.863354"], ["last_sign_in_at", "2019-12-06 01:15:27.863354"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.863885"], ["id", 713]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L..PenqzH3yrOI.F27HNz.QoeNvSypbIkE8U5Aw.t8hsiNzTNAS6C"], ["created_at", "2019-12-06 01:15:27.877756"], ["updated_at", "2019-12-06 01:15:27.877756"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.880295"], ["last_sign_in_at", "2019-12-06 01:15:27.880295"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.880836"], ["id", 714]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 63ms (Views: 47.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$70ZL6ouCeGTVxp6FeWypV.1ZdyDBqmnHfnTD.yk.vXqwxZIx1cLIm"], ["created_at", "2019-12-06 01:15:27.955708"], ["updated_at", "2019-12-06 01:15:27.955708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.958574"], ["last_sign_in_at", "2019-12-06 01:15:27.958574"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.959233"], ["id", 715]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ri.Q8cjH4rvWNvuWO9l53evXwE0DFFuNUUEfxHn4mG8JytJ40GsWW"], ["created_at", "2019-12-06 01:15:27.970865"], ["updated_at", "2019-12-06 01:15:27.970865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:15:27 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:27.973725"], ["last_sign_in_at", "2019-12-06 01:15:27.973725"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:27.974436"], ["id", 716]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 20ms (Views: 4.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WbGi5LMOcjjkiGwhsDlSV.OM1UCqAO/ozLAOJm4.GbY/rtgz7vv56"], ["created_at", "2019-12-06 01:15:28.004766"], ["updated_at", "2019-12-06 01:15:28.004766"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.007780"], ["last_sign_in_at", "2019-12-06 01:15:28.007780"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.008327"], ["id", 717]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G11iCmH5AZhBrgCJom2AIeAUMB7GcnoV22AX2KjOP96GsrHF472xy"], ["created_at", "2019-12-06 01:15:28.034088"], ["updated_at", "2019-12-06 01:15:28.034088"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.036661"], ["updated_at", "2019-12-06 01:15:28.036661"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/635” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.039462"], ["last_sign_in_at", "2019-12-06 01:15:28.039462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.040045"], ["id", 718]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"635"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 635], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 21ms (Views: 3.0ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FggOKdEZ5YnNljh5AfkSsevLd9qkSt7emSqvn9RyviJ.5gI0/HWHK"], ["created_at", "2019-12-06 01:15:28.070938"], ["updated_at", "2019-12-06 01:15:28.070938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.073863"], ["updated_at", "2019-12-06 01:15:28.073863"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/636” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.076907"], ["last_sign_in_at", "2019-12-06 01:15:28.076907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.077725"], ["id", 719]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"636"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 636], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.089434"], ["updated_at", "2019-12-06 01:15:28.089434"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/637” for 127.0.0.1 at 2019-12-05 22:15:28 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"637"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fHS7IWqHIeMJS3vRxhQBION3X8xdTjxhL5znvKpdjVHxZ6EMzABui"], ["created_at", "2019-12-06 01:15:28.101138"], ["updated_at", "2019-12-06 01:15:28.101138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.103722"], ["updated_at", "2019-12-06 01:15:28.103722"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/638/edit” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.106594"], ["last_sign_in_at", "2019-12-06 01:15:28.106594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.107839"], ["id", 720]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"638"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 638], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 21ms (Views: 4.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dk.Dt3cBB.zihuEivFtUReJdXd2.MgnYbhS2wzcFUPg.JLVI0GfX."], ["created_at", "2019-12-06 01:15:28.138546"], ["updated_at", "2019-12-06 01:15:28.138546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.141352"], ["updated_at", "2019-12-06 01:15:28.141352"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/639/edit” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.143887"], ["last_sign_in_at", "2019-12-06 01:15:28.143887"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.144476"], ["id", 721]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"639"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 639], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.156482"], ["updated_at", "2019-12-06 01:15:28.156482"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/640” for 127.0.0.1 at 2019-12-05 22:15:28 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"640"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ks12UfuHsCXb0aj/1hPz0.wSngXRggHhPEptlclADnIlSmsWeXm92"], ["created_at", "2019-12-06 01:15:28.169818"], ["updated_at", "2019-12-06 01:15:28.169818"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.173700"], ["last_sign_in_at", "2019-12-06 01:15:28.173700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.174767"], ["id", 722]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.179185"], ["updated_at", "2019-12-06 01:15:28.179185"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.ZrmfAi8egSSAqQFTXR4Jeef/gytIRku042j0WkfSG.2R4.mQva.O"], ["created_at", "2019-12-06 01:15:28.188177"], ["updated_at", "2019-12-06 01:15:28.188177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.191897"], ["last_sign_in_at", "2019-12-06 01:15:28.191897"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.192597"], ["id", 723]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.196621"], ["updated_at", "2019-12-06 01:15:28.196621"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NBaCrlfKI9zq2lDXjl/vKuTxcm3tHpah9zxLl09LcX6u1Rm/QEYS6"], ["created_at", "2019-12-06 01:15:28.205270"], ["updated_at", "2019-12-06 01:15:28.205270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.208855"], ["last_sign_in_at", "2019-12-06 01:15:28.208855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.209771"], ["id", 724]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.3ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.XBlr1zQi3TlhJeQsaYVgOofcbHDsgSkRiwTr7KBI7xziokNY.wWS"], ["created_at", "2019-12-06 01:15:28.232666"], ["updated_at", "2019-12-06 01:15:28.232666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.235482"], ["last_sign_in_at", "2019-12-06 01:15:28.235482"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.236006"], ["id", 725]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HN.dVdW.YIZyDsgLVm2nsOAY8W/mK0s3t1y6kBgvbgOYldvTV2vZm"], ["created_at", "2019-12-06 01:15:28.248883"], ["updated_at", "2019-12-06 01:15:28.248883"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.252218"], ["last_sign_in_at", "2019-12-06 01:15:28.252218"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.253025"], ["id", 726]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/4b8ggi0DhTTS8YkvNh99uZdmVk5cT3d2ktfZm97QCy3t.wfWLAui"], ["created_at", "2019-12-06 01:15:28.265065"], ["updated_at", "2019-12-06 01:15:28.265065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.268055"], ["updated_at", "2019-12-06 01:15:28.268055"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/643” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.270616"], ["last_sign_in_at", "2019-12-06 01:15:28.270616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.271139"], ["id", 727]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"643"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 643], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:15:28.274971"], ["id", 643]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/643 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cNzc0M79weEoH2nKYxVy.ObYArZArikSO8gLkcYH8Nm73o8ko47i6"], ["created_at", "2019-12-06 01:15:28.282349"], ["updated_at", "2019-12-06 01:15:28.282349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.284162"], ["updated_at", "2019-12-06 01:15:28.284162"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/644” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.286074"], ["last_sign_in_at", "2019-12-06 01:15:28.286074"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.286509"], ["id", 728]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"644"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 644], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:15:28.289947"], ["id", 644]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/644 Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8N4nwPDtUR87BgvQfhYV/OnFGe733CDfS5xVarorYc7v0XjIglDY6"], ["created_at", "2019-12-06 01:15:28.297197"], ["updated_at", "2019-12-06 01:15:28.297197"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.299174"], ["updated_at", "2019-12-06 01:15:28.299174"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/645” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.301349"], ["last_sign_in_at", "2019-12-06 01:15:28.301349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.301815"], ["id", 729]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"645"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 645], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HoqGmMJfsQm9UNvykpuSAemwwvNZ8gtrgMk45rHGluDlxdv48q8Qi"], ["created_at", "2019-12-06 01:15:28.314302"], ["updated_at", "2019-12-06 01:15:28.314302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.316122"], ["updated_at", "2019-12-06 01:15:28.316122"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/646” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.318045"], ["last_sign_in_at", "2019-12-06 01:15:28.318045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.318488"], ["id", 730]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"646"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 646], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VrwYh8RWlp9IYqhRdxV6wuF6S0FpyjeiIhzr4zjSawi7qbBT5r9VS"], ["created_at", "2019-12-06 01:15:28.332301"], ["updated_at", "2019-12-06 01:15:28.332301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.334808"], ["last_sign_in_at", "2019-12-06 01:15:28.334808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.335298"], ["id", 731]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vZy3Sf8lpEevx4dKvGNJ7uxFaDOnv.1xTUKNxAAdOyWWPF4tT6Ybm"], ["created_at", "2019-12-06 01:15:28.345499"], ["updated_at", "2019-12-06 01:15:28.345499"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.347741"], ["updated_at", "2019-12-06 01:15:28.347741"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/647” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.349716"], ["last_sign_in_at", "2019-12-06 01:15:28.349716"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.350246"], ["id", 732]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"647"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 647], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 647]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tJ6FtM7096PgQOCn1jIZVup1eUFhDJl.l6oYzlckwoaDWQmvkLW4m"], ["created_at", "2019-12-06 01:15:28.362565"], ["updated_at", "2019-12-06 01:15:28.362565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.364812"], ["updated_at", "2019-12-06 01:15:28.364812"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/648” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.366699"], ["last_sign_in_at", "2019-12-06 01:15:28.366699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.367350"], ["id", 733]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"648"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 648], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 648]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gsH0S5pSaxPzBktoojCYuujsLrooRooJPjDrcDJ5INjytEcyrvC.m"], ["created_at", "2019-12-06 01:15:28.377530"], ["updated_at", "2019-12-06 01:15:28.377530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.379606"], ["updated_at", "2019-12-06 01:15:28.379606"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/649” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.381446"], ["last_sign_in_at", "2019-12-06 01:15:28.381446"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.381997"], ["id", 734]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"649"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vmKW9qy0gHOpOaM9gdyYQOv69f82C3Lbwd6kvlUvvqoexGiOUB/QK"], ["created_at", "2019-12-06 01:15:28.391739"], ["updated_at", "2019-12-06 01:15:28.391739"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:15:28.394227"], ["updated_at", "2019-12-06 01:15:28.394227"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/650” for 127.0.0.1 at 2019-12-05 22:15:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:15:28.396213"], ["last_sign_in_at", "2019-12-06 01:15:28.396213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:15:28.396779"], ["id", 735]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"650"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:44.942409"], ["updated_at", "2019-12-06 01:29:44.942409"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wvQwx659nRrGj9aGmAgfWO.zVwhVIVtQv2h2zm2qX2q607OBxMiQe"], ["created_at", "2019-12-06 01:29:44.992455"], ["updated_at", "2019-12-06 01:29:44.992455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.000437"], ["updated_at", "2019-12-06 01:29:45.000437"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VTca./m/wDWfVfIF9V9XFuCIVCw4VO23CQpv6tr.zZz.7foc2jBPa"], ["created_at", "2019-12-06 01:29:45.005077"], ["updated_at", "2019-12-06 01:29:45.005077"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 652], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 737], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 737], ["room_id", 652], ["created_at", "2019-12-06 01:29:45.052568"], ["updated_at", "2019-12-06 01:29:45.052568"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.057875"], ["updated_at", "2019-12-06 01:29:45.057875"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Tip5E4BksiUKJJUk/XeRzOfGALYBDzAcxB7oayx4xn0ElKsGsRC62"], ["created_at", "2019-12-06 01:29:45.061832"], ["updated_at", "2019-12-06 01:29:45.061832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 653], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 738], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 738], ["room_id", 653], ["created_at", "2019-12-06 01:29:45.065939"], ["updated_at", "2019-12-06 01:29:45.065939"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.071449"], ["updated_at", "2019-12-06 01:29:45.071449"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7z//lAN1gHSXv9cAAJCnZ.zoOE5Q/0UHUP08R9ekohKGh26RkejVS"], ["created_at", "2019-12-06 01:29:45.075678"], ["updated_at", "2019-12-06 01:29:45.075678"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 654], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 739], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 739], ["room_id", 654], ["created_at", "2019-12-06 01:29:45.079636"], ["updated_at", "2019-12-06 01:29:45.079636"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.085211"], ["updated_at", "2019-12-06 01:29:45.085211"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ztQh3382ZftI1E9g8MUE8.BL.MLeTGfTcxpmO42fz982qTqkoHP6a"], ["created_at", "2019-12-06 01:29:45.089317"], ["updated_at", "2019-12-06 01:29:45.089317"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 655], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 740], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 740], ["room_id", 655], ["created_at", "2019-12-06 01:29:45.093280"], ["updated_at", "2019-12-06 01:29:45.093280"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 139ms (Views: 108.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7iUW5lP4xePnzzSPlB./NOhmv.qajhp2.yXNKQTjdbHO/od0UrLvm"], ["created_at", "2019-12-06 01:29:45.700137"], ["updated_at", "2019-12-06 01:29:45.700137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.702448"], ["updated_at", "2019-12-06 01:29:45.702448"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:29:45 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:45.718444"], ["last_sign_in_at", "2019-12-06 01:29:45.718444"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:45.719081"], ["id", 741]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"656"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 656], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 741], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 741], ["room_id", 656], ["created_at", "2019-12-06 01:29:45.736323"], ["updated_at", "2019-12-06 01:29:45.736323"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 656], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$u1Vjum5B67M./K9eNxepjeac3M6M7p0tSzH9/KUVL.iGYFRnZ2Qh2"], ["created_at", "2019-12-06 01:29:45.746091"], ["updated_at", "2019-12-06 01:29:45.746091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.748365"], ["updated_at", "2019-12-06 01:29:45.748365"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:29:45 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:45.751204"], ["last_sign_in_at", "2019-12-06 01:29:45.751204"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:45.751770"], ["id", 742]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"657"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 657], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 742], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 742], ["room_id", 657], ["created_at", "2019-12-06 01:29:45.756620"], ["updated_at", "2019-12-06 01:29:45.756620"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Px0NTVBXBcZk8DvwoVXcB.OzUjpSBbAPcIoAXwP1rFMPqEB7yPSWy"], ["created_at", "2019-12-06 01:29:45.765180"], ["updated_at", "2019-12-06 01:29:45.765180"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.767786"], ["updated_at", "2019-12-06 01:29:45.767786"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:29:45 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:45.770487"], ["last_sign_in_at", "2019-12-06 01:29:45.770487"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:45.771010"], ["id", 743]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"658"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 658], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KmiQyk0wlVlbIrzfomYWCeDeFpy8rZAlxdv3fWC22BYAWv4FqTl7m"], ["created_at", "2019-12-06 01:29:45.780212"], ["updated_at", "2019-12-06 01:29:45.780212"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.782503"], ["updated_at", "2019-12-06 01:29:45.782503"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:29:45 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:45.785193"], ["last_sign_in_at", "2019-12-06 01:29:45.785193"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:45.785776"], ["id", 744]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"659"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ImynDvKyeUU.z0BxI.oxxujt9MnbVL6UDnsda.Aydh/zxvinvmGVW"], ["created_at", "2019-12-06 01:29:45.795597"], ["updated_at", "2019-12-06 01:29:45.795597"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:45.797816"], ["updated_at", "2019-12-06 01:29:45.797816"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 660], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 745], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 745], ["room_id", 660], ["created_at", "2019-12-06 01:29:45.802162"], ["updated_at", "2019-12-06 01:29:45.802162"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/660” for 127.0.0.1 at 2019-12-05 22:29:45 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:45.804720"], ["last_sign_in_at", "2019-12-06 01:29:45.804720"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:45.805226"], ["id", 745]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"660"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 660], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '660')
Rendered appointments/show.html.erb within layouts/application (24.9ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 346ms (Views: 328.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JKCuQRHUeE4ZRR7rYbRJCe7r.WHX7a3fnvZK4I/Y33AJNAWbayeUO"], ["created_at", "2019-12-06 01:29:46.160786"], ["updated_at", "2019-12-06 01:29:46.160786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.162954"], ["updated_at", "2019-12-06 01:29:46.162954"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 661], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 746], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 746], ["room_id", 661], ["created_at", "2019-12-06 01:29:46.167009"], ["updated_at", "2019-12-06 01:29:46.167009"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 661], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 746], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 746], ["room_id", 661], ["created_at", "2019-12-06 01:29:46.171232"], ["updated_at", "2019-12-06 01:29:46.171232"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.173478"], ["last_sign_in_at", "2019-12-06 01:29:46.173478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.173945"], ["id", 746]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 746]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$t3bWre.SEv5UYvdZb.16BOqNvBPueEFar7cwI0pxfDr/Fi6txQXUO"], ["created_at", "2019-12-06 01:29:46.217322"], ["updated_at", "2019-12-06 01:29:46.217322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.219527"], ["updated_at", "2019-12-06 01:29:46.219527"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 662], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 747], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 747], ["room_id", 662], ["created_at", "2019-12-06 01:29:46.223186"], ["updated_at", "2019-12-06 01:29:46.223186"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 662], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 747], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 747], ["room_id", 662], ["created_at", "2019-12-06 01:29:46.226739"], ["updated_at", "2019-12-06 01:29:46.226739"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.228825"], ["last_sign_in_at", "2019-12-06 01:29:46.228825"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.229271"], ["id", 747]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 747]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$spgg0V3ULEStDsmWqvx31uyIDe7N.LvyiXIaMQi8.bNr5JUfVLHTa"], ["created_at", "2019-12-06 01:29:46.254021"], ["updated_at", "2019-12-06 01:29:46.254021"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.256052"], ["updated_at", "2019-12-06 01:29:46.256052"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 663], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 748], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 748], ["room_id", 663], ["created_at", "2019-12-06 01:29:46.259616"], ["updated_at", "2019-12-06 01:29:46.259616"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/309” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.261820"], ["last_sign_in_at", "2019-12-06 01:29:46.261820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.262340"], ["id", 748]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"309"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 309], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 309]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CWo/qCABbHomPxb5GGkSi.xV2QdqlAozEehCyMkdEz7SY7cgB1eQy"], ["created_at", "2019-12-06 01:29:46.276234"], ["updated_at", "2019-12-06 01:29:46.276234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.278524"], ["last_sign_in_at", "2019-12-06 01:29:46.278524"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.279011"], ["id", 749]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 35ms (Views: 18.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V/2f8T5.NIej6oaeh1cBqOyOJqP.Rn2/cw1oHwRLCdSPraqb3CseS"], ["created_at", "2019-12-06 01:29:46.323112"], ["updated_at", "2019-12-06 01:29:46.323112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.325261"], ["updated_at", "2019-12-06 01:29:46.325261"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 664], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 750], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 750], ["room_id", 664], ["created_at", "2019-12-06 01:29:46.328905"], ["updated_at", "2019-12-06 01:29:46.328905"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 664], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 750], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 750], ["room_id", 664], ["created_at", "2019-12-06 01:29:46.332689"], ["updated_at", "2019-12-06 01:29:46.332689"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.335151"], ["last_sign_in_at", "2019-12-06 01:29:46.335151"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.335622"], ["id", 750]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 664], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 750], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 750], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9MLpvYLc2EvMx2ejYQY.merMW9saJnprPKLwNdZlSBLMsM5.NXWyW"], ["created_at", "2019-12-06 01:29:46.348304"], ["updated_at", "2019-12-06 01:29:46.348304"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.350871"], ["updated_at", "2019-12-06 01:29:46.350871"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 665], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 751], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 751], ["room_id", 665], ["created_at", "2019-12-06 01:29:46.355610"], ["updated_at", "2019-12-06 01:29:46.355610"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 665], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 751], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 751], ["room_id", 665], ["created_at", "2019-12-06 01:29:46.360104"], ["updated_at", "2019-12-06 01:29:46.360104"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.362683"], ["last_sign_in_at", "2019-12-06 01:29:46.362683"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.363273"], ["id", 751]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 665], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 751], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 751], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L11My.DaNoZiLkL6Rmq7luLl4HVwnIYHPE9jQb6WAXRZBZLiK2edm"], ["created_at", "2019-12-06 01:29:46.378930"], ["updated_at", "2019-12-06 01:29:46.378930"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.381168"], ["updated_at", "2019-12-06 01:29:46.381168"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 666], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 752], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 752], ["room_id", 666], ["created_at", "2019-12-06 01:29:46.386083"], ["updated_at", "2019-12-06 01:29:46.386083"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 666], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 752], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 752], ["room_id", 666], ["created_at", "2019-12-06 01:29:46.390816"], ["updated_at", "2019-12-06 01:29:46.390816"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.393164"], ["last_sign_in_at", "2019-12-06 01:29:46.393164"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.393639"], ["id", 752]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FyamQTnYSOpqIj6f4laO3eL1dH0OBFoSF2c.9yMvrfFHJjFsnXO8."], ["created_at", "2019-12-06 01:29:46.405313"], ["updated_at", "2019-12-06 01:29:46.405313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.407444"], ["updated_at", "2019-12-06 01:29:46.407444"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 667], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 753], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 753], ["room_id", 667], ["created_at", "2019-12-06 01:29:46.411400"], ["updated_at", "2019-12-06 01:29:46.411400"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 667], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 753], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 753], ["room_id", 667], ["created_at", "2019-12-06 01:29:46.415358"], ["updated_at", "2019-12-06 01:29:46.415358"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.418219"], ["last_sign_in_at", "2019-12-06 01:29:46.418219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.418914"], ["id", 753]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O4zX8psLu6or6P7dNHaK1eiv0P0P4W6.IXqgX6CNsPdUWuY8kzA2u"], ["created_at", "2019-12-06 01:29:46.433100"], ["updated_at", "2019-12-06 01:29:46.433100"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.436030"], ["last_sign_in_at", "2019-12-06 01:29:46.436030"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.436621"], ["id", 754]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 65ms (Views: 49.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CuUS6EzwjHUyXdUsgTBT5.pfa94JDe7uyA.EjXJFYZAJnyfkl/v.."], ["created_at", "2019-12-06 01:29:46.514149"], ["updated_at", "2019-12-06 01:29:46.514149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.517217"], ["last_sign_in_at", "2019-12-06 01:29:46.517217"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.518053"], ["id", 755]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Fu.gz/l9JS/XBC9qalHeS./jUYALzHFvQHK4OVIyEHwwoubelsuoW"], ["created_at", "2019-12-06 01:29:46.529412"], ["updated_at", "2019-12-06 01:29:46.529412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.532413"], ["last_sign_in_at", "2019-12-06 01:29:46.532413"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.532921"], ["id", 756]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 21ms (Views: 4.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DxKnsqDNsjlRaumNIOEGFuTt7pL6fNHj2RK2NVzrjamR0NlRCfEMy"], ["created_at", "2019-12-06 01:29:46.563959"], ["updated_at", "2019-12-06 01:29:46.563959"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.566991"], ["last_sign_in_at", "2019-12-06 01:29:46.566991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.567560"], ["id", 757]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yd.dqQIc2xi3Ce6CCKK6be3KpdnnaEjJVvOAyD3NWkY.Qgbnn3MBq"], ["created_at", "2019-12-06 01:29:46.593683"], ["updated_at", "2019-12-06 01:29:46.593683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.596208"], ["updated_at", "2019-12-06 01:29:46.596208"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/668” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.598540"], ["last_sign_in_at", "2019-12-06 01:29:46.598540"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.599347"], ["id", 758]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"668"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 668], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 21ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UEn.DWAdhSdrRMuTPRjoG./yAG.CZiyB50iDNwO4c1GFCJpgWqmNq"], ["created_at", "2019-12-06 01:29:46.629436"], ["updated_at", "2019-12-06 01:29:46.629436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.631866"], ["updated_at", "2019-12-06 01:29:46.631866"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/669” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.634799"], ["last_sign_in_at", "2019-12-06 01:29:46.634799"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.635391"], ["id", 759]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"669"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 669], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.646828"], ["updated_at", "2019-12-06 01:29:46.646828"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/670” for 127.0.0.1 at 2019-12-05 22:29:46 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"670"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/ZjuG7353tHI.WiQCShqpO/wfLnLtJhx3JWtfUkTuO0/VJar8fDH2"], ["created_at", "2019-12-06 01:29:46.658705"], ["updated_at", "2019-12-06 01:29:46.658705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.661108"], ["updated_at", "2019-12-06 01:29:46.661108"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/671/edit” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.663764"], ["last_sign_in_at", "2019-12-06 01:29:46.663764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.664283"], ["id", 760]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"671"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 671], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 22ms (Views: 5.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eEoylTGbxoAJfpyKpsz.ue46muDnAZapMkVztb6FmilG/IJIoxLUm"], ["created_at", "2019-12-06 01:29:46.695961"], ["updated_at", "2019-12-06 01:29:46.695961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.698555"], ["updated_at", "2019-12-06 01:29:46.698555"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/672/edit” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.701541"], ["last_sign_in_at", "2019-12-06 01:29:46.701541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.702113"], ["id", 761]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"672"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 672], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.714210"], ["updated_at", "2019-12-06 01:29:46.714210"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/673” for 127.0.0.1 at 2019-12-05 22:29:46 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"673"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VWrDYqO6L438fDGiGVKe6e0HPE9FTgBqafLjQzHEYRb2wn2z5wciq"], ["created_at", "2019-12-06 01:29:46.726745"], ["updated_at", "2019-12-06 01:29:46.726745"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.729738"], ["last_sign_in_at", "2019-12-06 01:29:46.729738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.730730"], ["id", 762]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.734827"], ["updated_at", "2019-12-06 01:29:46.734827"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EQw6TpYC5fOSQMfzouOD4OgIgQkHkSdLXsAk5852GpBYbfeHJXR8m"], ["created_at", "2019-12-06 01:29:46.744153"], ["updated_at", "2019-12-06 01:29:46.744153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.747392"], ["last_sign_in_at", "2019-12-06 01:29:46.747392"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.747891"], ["id", 763]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.752285"], ["updated_at", "2019-12-06 01:29:46.752285"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3tfNzj4WbHg0mgCld6fU7uAFlSSL7ICdKIJK4itVAiXeU5pZZXiny"], ["created_at", "2019-12-06 01:29:46.761599"], ["updated_at", "2019-12-06 01:29:46.761599"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.764681"], ["last_sign_in_at", "2019-12-06 01:29:46.764681"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.765188"], ["id", 764]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tKU1Z/Q9stqUiRTjNDHujuU8f8JyEcDzSdTgRfdCGyIoqn0WBXA3C"], ["created_at", "2019-12-06 01:29:46.786703"], ["updated_at", "2019-12-06 01:29:46.786703"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.789272"], ["last_sign_in_at", "2019-12-06 01:29:46.789272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.789856"], ["id", 765]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$maq3M08mhorYMsigYDaLQO.WutgoYGad4N9R9hLTyoG54L7S12kmu"], ["created_at", "2019-12-06 01:29:46.800914"], ["updated_at", "2019-12-06 01:29:46.800914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.803664"], ["last_sign_in_at", "2019-12-06 01:29:46.803664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.804269"], ["id", 766]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vZeY6QxC0A5508Dzz9wGCuihIuds54mPQqRcMLq5DM/mEnhuSd2XW"], ["created_at", "2019-12-06 01:29:46.815092"], ["updated_at", "2019-12-06 01:29:46.815092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.817621"], ["updated_at", "2019-12-06 01:29:46.817621"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/676” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.820272"], ["last_sign_in_at", "2019-12-06 01:29:46.820272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.820870"], ["id", 767]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"676"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 676], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:29:46.824747"], ["id", 676]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/676 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SDOLjSsCka9ojQ0WvN.0KuTGZsc1go.Ov7HyEolsVqgZnFzB5MvxW"], ["created_at", "2019-12-06 01:29:46.833306"], ["updated_at", "2019-12-06 01:29:46.833306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.836049"], ["updated_at", "2019-12-06 01:29:46.836049"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/677” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.838648"], ["last_sign_in_at", "2019-12-06 01:29:46.838648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.839197"], ["id", 768]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"677"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 677], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:29:46.843104"], ["id", 677]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/677 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dAQrr6//NpZKdRiUvUkrOONVnexineMVNJPGseB.5iHYRYsx/MQNi"], ["created_at", "2019-12-06 01:29:46.851870"], ["updated_at", "2019-12-06 01:29:46.851870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.854163"], ["updated_at", "2019-12-06 01:29:46.854163"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/678” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.856565"], ["last_sign_in_at", "2019-12-06 01:29:46.856565"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.857099"], ["id", 769]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"678"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 678], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kxZpJqRBk1NCFpUmoa8skeTFrxR8ioUVEJ36V/GHYJKIfp1jF3yGe"], ["created_at", "2019-12-06 01:29:46.871885"], ["updated_at", "2019-12-06 01:29:46.871885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.874248"], ["updated_at", "2019-12-06 01:29:46.874248"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/679” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.876729"], ["last_sign_in_at", "2019-12-06 01:29:46.876729"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.877297"], ["id", 770]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"679"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 679], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LZOlEwrTDy7ff43mRGhkcOCnSzcUEU1zIl0jUwPmLx9RSGOirSkAi"], ["created_at", "2019-12-06 01:29:46.891868"], ["updated_at", "2019-12-06 01:29:46.891868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.894306"], ["last_sign_in_at", "2019-12-06 01:29:46.894306"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.894804"], ["id", 771]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m/gpIzkcpD8bjRPTLOlZ5ePHwdyBsj0AoipwPbBO0mtXwWoEEW8cO"], ["created_at", "2019-12-06 01:29:46.903945"], ["updated_at", "2019-12-06 01:29:46.903945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.906160"], ["updated_at", "2019-12-06 01:29:46.906160"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/680” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.907982"], ["last_sign_in_at", "2019-12-06 01:29:46.907982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.908426"], ["id", 772]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"680"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 680], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 680]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$83kLSAHPPDeIrCD2KV0XKuwz9DizJMqSzfqvQ3M.ocwqn355HvtQG"], ["created_at", "2019-12-06 01:29:46.919005"], ["updated_at", "2019-12-06 01:29:46.919005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.921132"], ["updated_at", "2019-12-06 01:29:46.921132"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/681” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.922855"], ["last_sign_in_at", "2019-12-06 01:29:46.922855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.923350"], ["id", 773]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"681"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 681], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 681]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pDMnddulKWG9huT6Qe6YneXwvPCCcoI3omTMyMk4InKS4z1eGNEdS"], ["created_at", "2019-12-06 01:29:46.934627"], ["updated_at", "2019-12-06 01:29:46.934627"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.936905"], ["updated_at", "2019-12-06 01:29:46.936905"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/682” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.938846"], ["last_sign_in_at", "2019-12-06 01:29:46.938846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.939341"], ["id", 774]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"682"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SMp9d51DL0ZOCzptZmvOJuCOZhGRxV7wXxCRNxSQO3W45YKA35KWG"], ["created_at", "2019-12-06 01:29:46.948374"], ["updated_at", "2019-12-06 01:29:46.948374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:29:46.951014"], ["updated_at", "2019-12-06 01:29:46.951014"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/683” for 127.0.0.1 at 2019-12-05 22:29:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:29:46.953135"], ["last_sign_in_at", "2019-12-06 01:29:46.953135"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:29:46.953694"], ["id", 775]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"683"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:23.996869"], ["updated_at", "2019-12-06 01:33:23.996869"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xs85BfCSQ8UBIVE4TS4YduMhFD3PIL11/.3ItidMcv/ob9QeFznWS"], ["created_at", "2019-12-06 01:33:24.045408"], ["updated_at", "2019-12-06 01:33:24.045408"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.052489"], ["updated_at", "2019-12-06 01:33:24.052489"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$C.Wjg93BMAGBAhGgeEm00O/KqVWbkFU2lXjZyCG94DBRwk6oRMPLe"], ["created_at", "2019-12-06 01:33:24.056341"], ["updated_at", "2019-12-06 01:33:24.056341"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 685], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 777], ["LIMIT", 1]]
SQL (1.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 777], ["room_id", 685], ["created_at", "2019-12-06 01:33:24.103099"], ["updated_at", "2019-12-06 01:33:24.103099"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.109687"], ["updated_at", "2019-12-06 01:33:24.109687"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$o79jAMwJ6eK4b.0hjx8nHOTkuMf7pj4Ax/BbbmlQpa.mpqWIqnED6"], ["created_at", "2019-12-06 01:33:24.113777"], ["updated_at", "2019-12-06 01:33:24.113777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 686], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 778], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 778], ["room_id", 686], ["created_at", "2019-12-06 01:33:24.117990"], ["updated_at", "2019-12-06 01:33:24.117990"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.124189"], ["updated_at", "2019-12-06 01:33:24.124189"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$l7esq4xOheavAESg/cAUVO7mj4dV5ZC7JmYcgB5QAnpek/64ufscO"], ["created_at", "2019-12-06 01:33:24.128488"], ["updated_at", "2019-12-06 01:33:24.128488"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 687], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 779], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 779], ["room_id", 687], ["created_at", "2019-12-06 01:33:24.132802"], ["updated_at", "2019-12-06 01:33:24.132802"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.138358"], ["updated_at", "2019-12-06 01:33:24.138358"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XI2Ad23pc8q1SSJ/89ng5evfACY8V9GUZkP8dFSU9fXZtf3X2c4/C"], ["created_at", "2019-12-06 01:33:24.142743"], ["updated_at", "2019-12-06 01:33:24.142743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 688], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 780], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 780], ["room_id", 688], ["created_at", "2019-12-06 01:33:24.146942"], ["updated_at", "2019-12-06 01:33:24.146942"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 140ms (Views: 108.6ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cem8/267oQJ1ePeZXSQu6O8.7kgZ4VUdm6up2cqXzfr/FvzPhVbWy"], ["created_at", "2019-12-06 01:33:24.740221"], ["updated_at", "2019-12-06 01:33:24.740221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.742447"], ["updated_at", "2019-12-06 01:33:24.742447"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:33:24 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:24.758605"], ["last_sign_in_at", "2019-12-06 01:33:24.758605"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:24.759267"], ["id", 781]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"689"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 689], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 781], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 781], ["room_id", 689], ["created_at", "2019-12-06 01:33:24.775608"], ["updated_at", "2019-12-06 01:33:24.775608"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 689], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Hw/Xcgv/6mCKyLQYiDi83.5mzqd87MvORAf4VSl0eESlb/epQnHGW"], ["created_at", "2019-12-06 01:33:24.784702"], ["updated_at", "2019-12-06 01:33:24.784702"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.786874"], ["updated_at", "2019-12-06 01:33:24.786874"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:33:24 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:24.789186"], ["last_sign_in_at", "2019-12-06 01:33:24.789186"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:24.789732"], ["id", 782]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"690"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 690], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 782], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 782], ["room_id", 690], ["created_at", "2019-12-06 01:33:24.794500"], ["updated_at", "2019-12-06 01:33:24.794500"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KlewyUlL6VC.eGfna/z5GuBFpNFia4Dh5Sakp74A7XrtX5XZXisui"], ["created_at", "2019-12-06 01:33:24.802353"], ["updated_at", "2019-12-06 01:33:24.802353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.804583"], ["updated_at", "2019-12-06 01:33:24.804583"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:33:24 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:24.807014"], ["last_sign_in_at", "2019-12-06 01:33:24.807014"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:24.807652"], ["id", 783]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"691"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 691], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2HhBcJuE3A5RDyRjY3fFLudXOq61N2BbCp3LZRDM8bAJ/eQqtuwGe"], ["created_at", "2019-12-06 01:33:24.817091"], ["updated_at", "2019-12-06 01:33:24.817091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.819061"], ["updated_at", "2019-12-06 01:33:24.819061"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:33:24 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:24.821270"], ["last_sign_in_at", "2019-12-06 01:33:24.821270"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:24.821820"], ["id", 784]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"692"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nJSXI7AxgorNuX2xd2FoZeMi3MNEgnIv7ewoi7sm7rpQhezGNd/p2"], ["created_at", "2019-12-06 01:33:24.831659"], ["updated_at", "2019-12-06 01:33:24.831659"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:24.833848"], ["updated_at", "2019-12-06 01:33:24.833848"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 693], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 785], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 785], ["room_id", 693], ["created_at", "2019-12-06 01:33:24.837319"], ["updated_at", "2019-12-06 01:33:24.837319"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/693” for 127.0.0.1 at 2019-12-05 22:33:24 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:24.839927"], ["last_sign_in_at", "2019-12-06 01:33:24.839927"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:24.840516"], ["id", 785]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"693"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 693], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '693')
Rendered appointments/show.html.erb within layouts/application (21.0ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 360ms (Views: 342.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zbvMHJvcASwL2rbBBIiz2uUS1k7Hmaa2GJSWHi9.Ek8vog6B.A7qC"], ["created_at", "2019-12-06 01:33:25.210666"], ["updated_at", "2019-12-06 01:33:25.210666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.213010"], ["updated_at", "2019-12-06 01:33:25.213010"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 694], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 786], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 786], ["room_id", 694], ["created_at", "2019-12-06 01:33:25.217356"], ["updated_at", "2019-12-06 01:33:25.217356"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 694], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 786], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 786], ["room_id", 694], ["created_at", "2019-12-06 01:33:25.220966"], ["updated_at", "2019-12-06 01:33:25.220966"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.223097"], ["last_sign_in_at", "2019-12-06 01:33:25.223097"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.223635"], ["id", 786]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 786]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3Tu2U3bc6XsdSumUAA4nMOo3vKBGQVywOcC/sb6FL2sMMdZc0HZKq"], ["created_at", "2019-12-06 01:33:25.266525"], ["updated_at", "2019-12-06 01:33:25.266525"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.268479"], ["updated_at", "2019-12-06 01:33:25.268479"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 695], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 787], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 787], ["room_id", 695], ["created_at", "2019-12-06 01:33:25.272034"], ["updated_at", "2019-12-06 01:33:25.272034"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 695], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 787], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 787], ["room_id", 695], ["created_at", "2019-12-06 01:33:25.275986"], ["updated_at", "2019-12-06 01:33:25.275986"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.278349"], ["last_sign_in_at", "2019-12-06 01:33:25.278349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.278897"], ["id", 787]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 787]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3pR8/5rLZlPgasYqjNUePes1/MT84xnl/jgxZivfrIK5S/gHEm/X."], ["created_at", "2019-12-06 01:33:25.292742"], ["updated_at", "2019-12-06 01:33:25.292742"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.295013"], ["updated_at", "2019-12-06 01:33:25.295013"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 696], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 788], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 788], ["room_id", 696], ["created_at", "2019-12-06 01:33:25.311639"], ["updated_at", "2019-12-06 01:33:25.311639"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/329” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.313723"], ["last_sign_in_at", "2019-12-06 01:33:25.313723"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.314207"], ["id", 788]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"329"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 329], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 329]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ko6AQGEQbpIgLo.2uXLcxe.HxlCokQZoNxDkGKBBMaLIKxHntjTxC"], ["created_at", "2019-12-06 01:33:25.327435"], ["updated_at", "2019-12-06 01:33:25.327435"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.329741"], ["last_sign_in_at", "2019-12-06 01:33:25.329741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.330306"], ["id", 789]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9GnA.Ztx/g4850MzQ7EsqeEp1eew9DmyfBzCef9oE1YQYjhGw7g1i"], ["created_at", "2019-12-06 01:33:25.374829"], ["updated_at", "2019-12-06 01:33:25.374829"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.377038"], ["updated_at", "2019-12-06 01:33:25.377038"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 697], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 790], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 790], ["room_id", 697], ["created_at", "2019-12-06 01:33:25.380830"], ["updated_at", "2019-12-06 01:33:25.380830"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 697], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 790], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 790], ["room_id", 697], ["created_at", "2019-12-06 01:33:25.384887"], ["updated_at", "2019-12-06 01:33:25.384887"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.387196"], ["last_sign_in_at", "2019-12-06 01:33:25.387196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.387785"], ["id", 790]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 697], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 790], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 790], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$msIZRchTFf9M2lrx.TX8deP1Ki8ogSfsIOIVjpsgEsuzAH.dKxrHe"], ["created_at", "2019-12-06 01:33:25.401373"], ["updated_at", "2019-12-06 01:33:25.401373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.403564"], ["updated_at", "2019-12-06 01:33:25.403564"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 698], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 791], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 791], ["room_id", 698], ["created_at", "2019-12-06 01:33:25.407625"], ["updated_at", "2019-12-06 01:33:25.407625"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 698], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 791], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 791], ["room_id", 698], ["created_at", "2019-12-06 01:33:25.411728"], ["updated_at", "2019-12-06 01:33:25.411728"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.414068"], ["last_sign_in_at", "2019-12-06 01:33:25.414068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.414587"], ["id", 791]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 698], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 791], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 791], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Bbk/6j73JTxXncJsgcg/WenKNlPbVEDUtNkP4/gCOZaJLd9l9X/Kq"], ["created_at", "2019-12-06 01:33:25.429351"], ["updated_at", "2019-12-06 01:33:25.429351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.431574"], ["updated_at", "2019-12-06 01:33:25.431574"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 699], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 792], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 792], ["room_id", 699], ["created_at", "2019-12-06 01:33:25.435328"], ["updated_at", "2019-12-06 01:33:25.435328"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 699], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 792], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 792], ["room_id", 699], ["created_at", "2019-12-06 01:33:25.439241"], ["updated_at", "2019-12-06 01:33:25.439241"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.442230"], ["last_sign_in_at", "2019-12-06 01:33:25.442230"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.442775"], ["id", 792]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ajQH3QWR4PIE2elaxrHDb.likC4QRKmpSZJNKffGgXiyiRgJ4cZLe"], ["created_at", "2019-12-06 01:33:25.454091"], ["updated_at", "2019-12-06 01:33:25.454091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.456334"], ["updated_at", "2019-12-06 01:33:25.456334"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 700], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 793], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 793], ["room_id", 700], ["created_at", "2019-12-06 01:33:25.460700"], ["updated_at", "2019-12-06 01:33:25.460700"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 700], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 793], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 793], ["room_id", 700], ["created_at", "2019-12-06 01:33:25.464660"], ["updated_at", "2019-12-06 01:33:25.464660"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.466989"], ["last_sign_in_at", "2019-12-06 01:33:25.466989"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.467541"], ["id", 793]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Vtrtg45/iyukw6O3YqnR2O37D0fu1uKAD/rrD/X60133VIbao9Gs6"], ["created_at", "2019-12-06 01:33:25.481662"], ["updated_at", "2019-12-06 01:33:25.481662"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.484067"], ["last_sign_in_at", "2019-12-06 01:33:25.484067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.484644"], ["id", 794]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 62ms (Views: 46.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CDRM3eTMW6WlVoGq.euhE.oBghIPrNBh5Rh8GXcjBkSsc8LI3RhD."], ["created_at", "2019-12-06 01:33:25.560142"], ["updated_at", "2019-12-06 01:33:25.560142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.562541"], ["last_sign_in_at", "2019-12-06 01:33:25.562541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.563059"], ["id", 795]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Mg6PjMyk08ET/NOs./I6uOIMAJiu6iOMk50o.zG5p9Dd/IEuxIPLC"], ["created_at", "2019-12-06 01:33:25.573144"], ["updated_at", "2019-12-06 01:33:25.573144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.576575"], ["last_sign_in_at", "2019-12-06 01:33:25.576575"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.577105"], ["id", 796]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ib3l1Tg8WucHnGEnK0Qzqub.VZ8ahM7VlvcCC.UvcUOyboDF6z3DO"], ["created_at", "2019-12-06 01:33:25.607824"], ["updated_at", "2019-12-06 01:33:25.607824"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.610665"], ["last_sign_in_at", "2019-12-06 01:33:25.610665"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.611256"], ["id", 797]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ssh0eccpdAHgR/gVE/2Qz.OqP4EynSfdUpFpz0no2uP6ke2FxOuE."], ["created_at", "2019-12-06 01:33:25.635690"], ["updated_at", "2019-12-06 01:33:25.635690"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.640489"], ["updated_at", "2019-12-06 01:33:25.640489"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/701” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.643372"], ["last_sign_in_at", "2019-12-06 01:33:25.643372"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.643887"], ["id", 798]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"701"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 701], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 19ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yP0ge5rxJAuhM5xMldtzTupn76P52N8Zw0dLWKnGPI6k0bUDteqfC"], ["created_at", "2019-12-06 01:33:25.672367"], ["updated_at", "2019-12-06 01:33:25.672367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.675608"], ["updated_at", "2019-12-06 01:33:25.675608"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/702” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.678040"], ["last_sign_in_at", "2019-12-06 01:33:25.678040"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.678810"], ["id", 799]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"702"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 702], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.689868"], ["updated_at", "2019-12-06 01:33:25.689868"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/703” for 127.0.0.1 at 2019-12-05 22:33:25 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"703"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$siHTjNE00PfaPKThq9sExO38CpOT4IHV6pTxYjEk0Lq4iHHSxRdXq"], ["created_at", "2019-12-06 01:33:25.702090"], ["updated_at", "2019-12-06 01:33:25.702090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.704934"], ["updated_at", "2019-12-06 01:33:25.704934"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/704/edit” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.707996"], ["last_sign_in_at", "2019-12-06 01:33:25.707996"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.708792"], ["id", 800]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"704"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 704], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 21ms (Views: 4.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DuH/1SySJRGUp0gD117yruZDDfw4JMbZmNtTKUT3LDtdUkrjwi56e"], ["created_at", "2019-12-06 01:33:25.739187"], ["updated_at", "2019-12-06 01:33:25.739187"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.741994"], ["updated_at", "2019-12-06 01:33:25.741994"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/705/edit” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.744036"], ["last_sign_in_at", "2019-12-06 01:33:25.744036"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.744794"], ["id", 801]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"705"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 705], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.757059"], ["updated_at", "2019-12-06 01:33:25.757059"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/706” for 127.0.0.1 at 2019-12-05 22:33:25 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"706"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QsNWNA8DEH.NF3tseOugwekM2PU9S64fGiaLaW69JlEhtbTq1Wiai"], ["created_at", "2019-12-06 01:33:25.769014"], ["updated_at", "2019-12-06 01:33:25.769014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.772039"], ["last_sign_in_at", "2019-12-06 01:33:25.772039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.772575"], ["id", 802]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.776689"], ["updated_at", "2019-12-06 01:33:25.776689"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j3JLPLToQ/qFbv.xamk.nePp9oXR3UqqMc8dcFD9b1Mlvsp6WEEXy"], ["created_at", "2019-12-06 01:33:25.784750"], ["updated_at", "2019-12-06 01:33:25.784750"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.787518"], ["last_sign_in_at", "2019-12-06 01:33:25.787518"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.788357"], ["id", 803]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.792408"], ["updated_at", "2019-12-06 01:33:25.792408"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6pz3tjIn/zF7o3aAyt0gvuOu8wszpUSZFJtrcJOebC4PtLgBPa2SG"], ["created_at", "2019-12-06 01:33:25.800925"], ["updated_at", "2019-12-06 01:33:25.800925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.804118"], ["last_sign_in_at", "2019-12-06 01:33:25.804118"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.804703"], ["id", 804]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vt6qaRB/KGI2J/4a6ekrned2LqL1zvMhds5cBUB2icLHa6DhwzLVi"], ["created_at", "2019-12-06 01:33:25.816750"], ["updated_at", "2019-12-06 01:33:25.816750"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.820093"], ["last_sign_in_at", "2019-12-06 01:33:25.820093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.820582"], ["id", 805]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lo1Ls0QYNYEq5w2RuI5qqeZtU9SAfvTGKSxp79zAH8cKnTrCtIm.m"], ["created_at", "2019-12-06 01:33:25.832581"], ["updated_at", "2019-12-06 01:33:25.832581"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.844253"], ["last_sign_in_at", "2019-12-06 01:33:25.844253"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.844736"], ["id", 806]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r1eu0piN3TovIZy9z8xl6.DUaHPQDu0tVI9OFwyglGfvOnFCfPvra"], ["created_at", "2019-12-06 01:33:25.854734"], ["updated_at", "2019-12-06 01:33:25.854734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.857117"], ["updated_at", "2019-12-06 01:33:25.857117"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/709” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.860096"], ["last_sign_in_at", "2019-12-06 01:33:25.860096"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.860606"], ["id", 807]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"709"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 709], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:33:25.864269"], ["id", 709]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/709 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iCcG1pYTr77mSk7iwOR/ouD9W3KWEsKAv9uJKXnGcf38vfiacLBIm"], ["created_at", "2019-12-06 01:33:25.871980"], ["updated_at", "2019-12-06 01:33:25.871980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.874746"], ["updated_at", "2019-12-06 01:33:25.874746"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/710” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.877112"], ["last_sign_in_at", "2019-12-06 01:33:25.877112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.877656"], ["id", 808]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"710"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 710], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:33:25.881224"], ["id", 710]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/710 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NmGN/8itpKQMf9QQsmu4QOTJccjndS/P9h.ASoRls.dkHPYsRGc26"], ["created_at", "2019-12-06 01:33:25.890953"], ["updated_at", "2019-12-06 01:33:25.890953"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.893444"], ["updated_at", "2019-12-06 01:33:25.893444"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/711” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.895779"], ["last_sign_in_at", "2019-12-06 01:33:25.895779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.896278"], ["id", 809]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"711"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 711], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aLydXaY/wwTdM4jKoqcHhOuUo2V7CufqHai./xYEriJnhpqzlDAo2"], ["created_at", "2019-12-06 01:33:25.910541"], ["updated_at", "2019-12-06 01:33:25.910541"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.912774"], ["updated_at", "2019-12-06 01:33:25.912774"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/712” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.915271"], ["last_sign_in_at", "2019-12-06 01:33:25.915271"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.915848"], ["id", 810]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"712"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 712], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GwgXFgsnheHwBQiOV3p5YuWNBoVqnKPkmY9H4Vm9fcwVV.TVbHXDC"], ["created_at", "2019-12-06 01:33:25.930142"], ["updated_at", "2019-12-06 01:33:25.930142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.932787"], ["last_sign_in_at", "2019-12-06 01:33:25.932787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.933273"], ["id", 811]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$neEJkXi5HqdIsgKYBfTc3OQAZtfBuDVt5nMmSolBe4T6bfprTI5u6"], ["created_at", "2019-12-06 01:33:25.944107"], ["updated_at", "2019-12-06 01:33:25.944107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.946471"], ["updated_at", "2019-12-06 01:33:25.946471"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/713” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.948412"], ["last_sign_in_at", "2019-12-06 01:33:25.948412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.948896"], ["id", 812]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"713"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 713], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 713]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8xmA.ivMeINjTXExgbKI1et5.3PwPEwh1bavTF1hLkcRdm.6a6ZHi"], ["created_at", "2019-12-06 01:33:25.960240"], ["updated_at", "2019-12-06 01:33:25.960240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.962564"], ["updated_at", "2019-12-06 01:33:25.962564"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/714” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.964704"], ["last_sign_in_at", "2019-12-06 01:33:25.964704"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.965244"], ["id", 813]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"714"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 714], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 714]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hmfUNQsO/9VYeo1EG6iKae3D8YrzruLQPOiUh2E8DpeIOam4E7ZVK"], ["created_at", "2019-12-06 01:33:25.977171"], ["updated_at", "2019-12-06 01:33:25.977171"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.979338"], ["updated_at", "2019-12-06 01:33:25.979338"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/715” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.981126"], ["last_sign_in_at", "2019-12-06 01:33:25.981126"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.981616"], ["id", 814]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"715"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bFKOoyu/aMWi3toa9SotmOWyvHo2GgyIPFNVeZ8yOhiK9bcQghXju"], ["created_at", "2019-12-06 01:33:25.992040"], ["updated_at", "2019-12-06 01:33:25.992040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:33:25.994660"], ["updated_at", "2019-12-06 01:33:25.994660"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/716” for 127.0.0.1 at 2019-12-05 22:33:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:33:25.996739"], ["last_sign_in_at", "2019-12-06 01:33:25.996739"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:33:25.997296"], ["id", 815]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"716"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (1.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:48.856339"], ["updated_at", "2019-12-06 01:34:48.856339"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Dz4ZIkYl1MbrYmuLWk8jru05iGtOGfzu2u.Ento.cCwcCl3rphR9W"], ["created_at", "2019-12-06 01:34:48.905366"], ["updated_at", "2019-12-06 01:34:48.905366"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:48.912544"], ["updated_at", "2019-12-06 01:34:48.912544"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q58rDbBnpo/ckm8l/pXwYuCQVg6QeTUAy8B3BOtWTY57FlnRV1ONi"], ["created_at", "2019-12-06 01:34:48.917179"], ["updated_at", "2019-12-06 01:34:48.917179"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 718], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 817], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 817], ["room_id", 718], ["created_at", "2019-12-06 01:34:48.964116"], ["updated_at", "2019-12-06 01:34:48.964116"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:48.970018"], ["updated_at", "2019-12-06 01:34:48.970018"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UAu8z12GOiF/6E0Q8izHBOxE8XVsckwNqLUV6UXhDsnLPJaMJaMOW"], ["created_at", "2019-12-06 01:34:48.973912"], ["updated_at", "2019-12-06 01:34:48.973912"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 719], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 818], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 818], ["room_id", 719], ["created_at", "2019-12-06 01:34:48.978076"], ["updated_at", "2019-12-06 01:34:48.978076"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:48.984142"], ["updated_at", "2019-12-06 01:34:48.984142"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xAzsZw1ZzX238Lcb.inFZeDwPRvWPA04BayKcLCAeqn3tLBPAHysi"], ["created_at", "2019-12-06 01:34:48.988141"], ["updated_at", "2019-12-06 01:34:48.988141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 720], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 819], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 819], ["room_id", 720], ["created_at", "2019-12-06 01:34:48.992353"], ["updated_at", "2019-12-06 01:34:48.992353"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:48.998724"], ["updated_at", "2019-12-06 01:34:48.998724"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ax2o758i1gFANlHZVNLL6eK16yl9k0DjuM0m9t7rTeC.U6HH/a2.W"], ["created_at", "2019-12-06 01:34:49.003037"], ["updated_at", "2019-12-06 01:34:49.003037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 721], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 820], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 820], ["room_id", 721], ["created_at", "2019-12-06 01:34:49.007036"], ["updated_at", "2019-12-06 01:34:49.007036"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 138ms (Views: 107.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0qrE0uNdtGRXUNFAM7bT5OciDxNECKTX6C2xUmFiLcJP4s.DPiou2"], ["created_at", "2019-12-06 01:34:49.600075"], ["updated_at", "2019-12-06 01:34:49.600075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:49.602273"], ["updated_at", "2019-12-06 01:34:49.602273"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:34:49 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:49.618184"], ["last_sign_in_at", "2019-12-06 01:34:49.618184"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:49.618833"], ["id", 821]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"722"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 722], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 821], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 821], ["room_id", 722], ["created_at", "2019-12-06 01:34:49.636768"], ["updated_at", "2019-12-06 01:34:49.636768"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 722], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$66ZsRfgX9ec9btdGZQAdUu99Bk0au5fCHHDVWy8gPRSdfqmtK1pyK"], ["created_at", "2019-12-06 01:34:49.646312"], ["updated_at", "2019-12-06 01:34:49.646312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:49.648587"], ["updated_at", "2019-12-06 01:34:49.648587"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:34:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:49.651001"], ["last_sign_in_at", "2019-12-06 01:34:49.651001"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:49.651523"], ["id", 822]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"723"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 723], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 822], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 822], ["room_id", 723], ["created_at", "2019-12-06 01:34:49.656222"], ["updated_at", "2019-12-06 01:34:49.656222"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XKfEzfnC9lQKYUVKCWAA4e962O65dxPII4xih0S46tPE7Aa/ymtGS"], ["created_at", "2019-12-06 01:34:49.664398"], ["updated_at", "2019-12-06 01:34:49.664398"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:49.666345"], ["updated_at", "2019-12-06 01:34:49.666345"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:34:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:49.668569"], ["last_sign_in_at", "2019-12-06 01:34:49.668569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:49.669117"], ["id", 823]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"724"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 724], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QPsWvjyka0i5vi30Z8WPA.aIptPVF6o0VGIG1YXrIUdrreMxGEpDS"], ["created_at", "2019-12-06 01:34:49.677600"], ["updated_at", "2019-12-06 01:34:49.677600"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:49.679811"], ["updated_at", "2019-12-06 01:34:49.679811"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:34:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:49.682032"], ["last_sign_in_at", "2019-12-06 01:34:49.682032"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:49.682520"], ["id", 824]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"725"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$487qaX/355PA.TqzJKJim.Sr9qBmrxGujkvVJHzYxKwsWXqMvBM6m"], ["created_at", "2019-12-06 01:34:49.691455"], ["updated_at", "2019-12-06 01:34:49.691455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:49.693875"], ["updated_at", "2019-12-06 01:34:49.693875"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 726], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 825], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 825], ["room_id", 726], ["created_at", "2019-12-06 01:34:49.698217"], ["updated_at", "2019-12-06 01:34:49.698217"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/726” for 127.0.0.1 at 2019-12-05 22:34:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:49.700552"], ["last_sign_in_at", "2019-12-06 01:34:49.700552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:49.701054"], ["id", 825]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"726"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 726], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '726')
Rendered appointments/show.html.erb within layouts/application (21.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 348ms (Views: 330.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kan2w0WlJHZQ/TO0dde6ceLM1BJ0elL9K8rFvdDP80NTI7JjIH5pi"], ["created_at", "2019-12-06 01:34:50.059001"], ["updated_at", "2019-12-06 01:34:50.059001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.061755"], ["updated_at", "2019-12-06 01:34:50.061755"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 727], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 826], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 826], ["room_id", 727], ["created_at", "2019-12-06 01:34:50.065619"], ["updated_at", "2019-12-06 01:34:50.065619"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 727], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 826], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 826], ["room_id", 727], ["created_at", "2019-12-06 01:34:50.069374"], ["updated_at", "2019-12-06 01:34:50.069374"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.071681"], ["last_sign_in_at", "2019-12-06 01:34:50.071681"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.072215"], ["id", 826]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 826]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 35ms (Views: 4.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$txCWUArog1CLtY8YLCYBAOh1S6G.9sT0C0YlhAFfUokqfEFutvkry"], ["created_at", "2019-12-06 01:34:50.116013"], ["updated_at", "2019-12-06 01:34:50.116013"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.118219"], ["updated_at", "2019-12-06 01:34:50.118219"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 728], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 827], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 827], ["room_id", 728], ["created_at", "2019-12-06 01:34:50.122028"], ["updated_at", "2019-12-06 01:34:50.122028"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 728], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 827], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 827], ["room_id", 728], ["created_at", "2019-12-06 01:34:50.125892"], ["updated_at", "2019-12-06 01:34:50.125892"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.128459"], ["last_sign_in_at", "2019-12-06 01:34:50.128459"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.128964"], ["id", 827]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 827]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ih0UNdXfBTbZi4SPOncyyOml.w05zYRLkFmw1P9049vyrugq.zMoC"], ["created_at", "2019-12-06 01:34:50.142485"], ["updated_at", "2019-12-06 01:34:50.142485"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.145283"], ["updated_at", "2019-12-06 01:34:50.145283"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 729], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 828], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 828], ["room_id", 729], ["created_at", "2019-12-06 01:34:50.161776"], ["updated_at", "2019-12-06 01:34:50.161776"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/349” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.164180"], ["last_sign_in_at", "2019-12-06 01:34:50.164180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.164769"], ["id", 828]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"349"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 349], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 349]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SnDs..sno7PnL1n/AaCtPeKmUERMPrgqG.6mUl54VM.auIPQHpwKG"], ["created_at", "2019-12-06 01:34:50.179349"], ["updated_at", "2019-12-06 01:34:50.179349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.181820"], ["last_sign_in_at", "2019-12-06 01:34:50.181820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.182343"], ["id", 829]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3C.4WCWrv5oy13aYP9/zrO6l6qt7eMP2yXKmAUQmMsPSSS1XT4EFC"], ["created_at", "2019-12-06 01:34:50.225835"], ["updated_at", "2019-12-06 01:34:50.225835"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.228249"], ["updated_at", "2019-12-06 01:34:50.228249"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 730], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 830], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 830], ["room_id", 730], ["created_at", "2019-12-06 01:34:50.232060"], ["updated_at", "2019-12-06 01:34:50.232060"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 730], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 830], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 830], ["room_id", 730], ["created_at", "2019-12-06 01:34:50.235882"], ["updated_at", "2019-12-06 01:34:50.235882"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.238193"], ["last_sign_in_at", "2019-12-06 01:34:50.238193"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.238679"], ["id", 830]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 730], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 830], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 830], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Jmv16LCXiqiZtl2odV15denzgj/cdsbHtmslxCwhFj9spLWUSWURe"], ["created_at", "2019-12-06 01:34:50.252153"], ["updated_at", "2019-12-06 01:34:50.252153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.254486"], ["updated_at", "2019-12-06 01:34:50.254486"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 731], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 831], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 831], ["room_id", 731], ["created_at", "2019-12-06 01:34:50.258409"], ["updated_at", "2019-12-06 01:34:50.258409"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 731], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 831], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 831], ["room_id", 731], ["created_at", "2019-12-06 01:34:50.262755"], ["updated_at", "2019-12-06 01:34:50.262755"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.265123"], ["last_sign_in_at", "2019-12-06 01:34:50.265123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.265608"], ["id", 831]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 731], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 831], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 831], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SmO8a2gZg9wCYGtZGfCLmOL8TEoGmov9J0CdftN1Gwz3N71rLmPlO"], ["created_at", "2019-12-06 01:34:50.280315"], ["updated_at", "2019-12-06 01:34:50.280315"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.282529"], ["updated_at", "2019-12-06 01:34:50.282529"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 732], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 832], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 832], ["room_id", 732], ["created_at", "2019-12-06 01:34:50.286371"], ["updated_at", "2019-12-06 01:34:50.286371"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 732], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 832], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 832], ["room_id", 732], ["created_at", "2019-12-06 01:34:50.290264"], ["updated_at", "2019-12-06 01:34:50.290264"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.292789"], ["last_sign_in_at", "2019-12-06 01:34:50.292789"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.293546"], ["id", 832]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XJlfe51lFYb4a.SMCb0Vc.7ROPAK1Go9qBk/vSQeoDj74UL08x.3O"], ["created_at", "2019-12-06 01:34:50.304734"], ["updated_at", "2019-12-06 01:34:50.304734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.307201"], ["updated_at", "2019-12-06 01:34:50.307201"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 733], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 833], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 833], ["room_id", 733], ["created_at", "2019-12-06 01:34:50.311555"], ["updated_at", "2019-12-06 01:34:50.311555"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 733], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 833], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 833], ["room_id", 733], ["created_at", "2019-12-06 01:34:50.315539"], ["updated_at", "2019-12-06 01:34:50.315539"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.317946"], ["last_sign_in_at", "2019-12-06 01:34:50.317946"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.318464"], ["id", 833]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GSKJFhOmjYRprQ5g757ZQeUEshAWrJhIIDM7WXCR9XpPbgtxwL2SS"], ["created_at", "2019-12-06 01:34:50.332556"], ["updated_at", "2019-12-06 01:34:50.332556"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.335039"], ["last_sign_in_at", "2019-12-06 01:34:50.335039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.335604"], ["id", 834]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 62ms (Views: 46.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$diUnv4xe3ZsVaDJWiQLROuEGOVxWoicPa6kGnVvB6c4/J5gGDDX7C"], ["created_at", "2019-12-06 01:34:50.409313"], ["updated_at", "2019-12-06 01:34:50.409313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.411793"], ["last_sign_in_at", "2019-12-06 01:34:50.411793"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.412309"], ["id", 835]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KPBLE5yP0WLf91zgQZefdOJDRC9iCMdAhPlLsw2HIOeD8jFoI/BMy"], ["created_at", "2019-12-06 01:34:50.423301"], ["updated_at", "2019-12-06 01:34:50.423301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.426232"], ["last_sign_in_at", "2019-12-06 01:34:50.426232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.426926"], ["id", 836]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QDbfvSsqE1DaRVCUmUJei.vjMtkAxl2o229GZBMDbS0XO9fKdqCm6"], ["created_at", "2019-12-06 01:34:50.457246"], ["updated_at", "2019-12-06 01:34:50.457246"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.460026"], ["last_sign_in_at", "2019-12-06 01:34:50.460026"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.460583"], ["id", 837]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rc3GBnP5DgeFTbBDcj2EU.N46YpQJ1fljyrUvB4jzAcBgrVmbYFBm"], ["created_at", "2019-12-06 01:34:50.486144"], ["updated_at", "2019-12-06 01:34:50.486144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.488515"], ["updated_at", "2019-12-06 01:34:50.488515"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/734” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.491089"], ["last_sign_in_at", "2019-12-06 01:34:50.491089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.491602"], ["id", 838]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"734"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 734], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 21ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0KtSoKIgFw2A6z89jU.IruMdrVUCsVS96.Mcr.YMYp4.k8Tw04rC6"], ["created_at", "2019-12-06 01:34:50.522502"], ["updated_at", "2019-12-06 01:34:50.522502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.525087"], ["updated_at", "2019-12-06 01:34:50.525087"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/735” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.527757"], ["last_sign_in_at", "2019-12-06 01:34:50.527757"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.528298"], ["id", 839]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"735"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 735], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.539141"], ["updated_at", "2019-12-06 01:34:50.539141"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/736” for 127.0.0.1 at 2019-12-05 22:34:50 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"736"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1YXVP6dVnVyCqeJYK2tN/eVR0mvA2aX4ebOimKiMNBXIyJl5YujAm"], ["created_at", "2019-12-06 01:34:50.550892"], ["updated_at", "2019-12-06 01:34:50.550892"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.553449"], ["updated_at", "2019-12-06 01:34:50.553449"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/737/edit” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.555836"], ["last_sign_in_at", "2019-12-06 01:34:50.555836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.556328"], ["id", 840]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"737"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 737], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 4.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1G/z4LsraNtV0PKhpUVmneEnNqwcfZiB/xj28bXKVHH5SU.JHaWLu"], ["created_at", "2019-12-06 01:34:50.586298"], ["updated_at", "2019-12-06 01:34:50.586298"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.588222"], ["updated_at", "2019-12-06 01:34:50.588222"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/738/edit” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.590197"], ["last_sign_in_at", "2019-12-06 01:34:50.590197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.590901"], ["id", 841]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"738"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 738], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.602550"], ["updated_at", "2019-12-06 01:34:50.602550"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/739” for 127.0.0.1 at 2019-12-05 22:34:50 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"739"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IeVf/4PWOe2sCQTVVUeia.ON1PyeHAROm2uf8UsYlM3ZNHVrgayBa"], ["created_at", "2019-12-06 01:34:50.614227"], ["updated_at", "2019-12-06 01:34:50.614227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.617349"], ["last_sign_in_at", "2019-12-06 01:34:50.617349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.617966"], ["id", 842]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.621546"], ["updated_at", "2019-12-06 01:34:50.621546"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$40pBpr3t18CYdVtTvE7WN.tBzyXhebZP0Z0R8y7Yzg.E/GhlLp6.m"], ["created_at", "2019-12-06 01:34:50.631293"], ["updated_at", "2019-12-06 01:34:50.631293"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.634288"], ["last_sign_in_at", "2019-12-06 01:34:50.634288"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.634792"], ["id", 843]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.638574"], ["updated_at", "2019-12-06 01:34:50.638574"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kdyOI3cQFYaCU6Id8DsEkuYr5lQDpIuxmcyjqJHc/GiTmgR6USq8a"], ["created_at", "2019-12-06 01:34:50.647637"], ["updated_at", "2019-12-06 01:34:50.647637"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.650390"], ["last_sign_in_at", "2019-12-06 01:34:50.650390"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.650848"], ["id", 844]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ma0cNSmWKbrsAMvxCCr4aOrRnv2.duIayd8ORYS/WCBBeUqp098eK"], ["created_at", "2019-12-06 01:34:50.662729"], ["updated_at", "2019-12-06 01:34:50.662729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.665535"], ["last_sign_in_at", "2019-12-06 01:34:50.665535"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.666022"], ["id", 845]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8OnPXJ1vg8QZpdgEL666J.CI3SYuXUngE4yaAwHOud2cKDwUPTk0O"], ["created_at", "2019-12-06 01:34:50.686272"], ["updated_at", "2019-12-06 01:34:50.686272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.688829"], ["last_sign_in_at", "2019-12-06 01:34:50.688829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.689329"], ["id", 846]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4CZT.ynYpHNrxechkEfE0ORufPEnyhbiN8FRjVH.Kbr8K2HuNEgGO"], ["created_at", "2019-12-06 01:34:50.700141"], ["updated_at", "2019-12-06 01:34:50.700141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.702382"], ["updated_at", "2019-12-06 01:34:50.702382"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/742” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.704636"], ["last_sign_in_at", "2019-12-06 01:34:50.704636"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.705156"], ["id", 847]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"742"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 742], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:34:50.708903"], ["id", 742]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/742 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G2mRwekMPptbsnqNQFLzZuWIZaEH2KPOxCe1eg1Tqzds2DwWPWyB."], ["created_at", "2019-12-06 01:34:50.717598"], ["updated_at", "2019-12-06 01:34:50.717598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.719725"], ["updated_at", "2019-12-06 01:34:50.719725"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/743” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.721921"], ["last_sign_in_at", "2019-12-06 01:34:50.721921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.722464"], ["id", 848]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"743"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 743], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:34:50.726412"], ["id", 743]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/743 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CN9bFH7rLrX4FsF.yTgLe.LfN.ZXR2ZS4CYcgWY4jrXt8vdnwKinm"], ["created_at", "2019-12-06 01:34:50.735632"], ["updated_at", "2019-12-06 01:34:50.735632"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.737960"], ["updated_at", "2019-12-06 01:34:50.737960"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/744” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.740180"], ["last_sign_in_at", "2019-12-06 01:34:50.740180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.740754"], ["id", 849]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"744"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 744], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JLadtLCptvkgtm/z1R9KEOJAGnMMR2sp27PPmRjXsty5Xv7HIssh2"], ["created_at", "2019-12-06 01:34:50.754841"], ["updated_at", "2019-12-06 01:34:50.754841"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.757153"], ["updated_at", "2019-12-06 01:34:50.757153"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/745” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.759345"], ["last_sign_in_at", "2019-12-06 01:34:50.759345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.760162"], ["id", 850]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"745"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 745], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$54KNGW4xvH/eIx.E3yWVM.h1xbP76yEueYt2xvdEViafcAA/kTkFe"], ["created_at", "2019-12-06 01:34:50.774349"], ["updated_at", "2019-12-06 01:34:50.774349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.777233"], ["last_sign_in_at", "2019-12-06 01:34:50.777233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.777869"], ["id", 851]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fbTPPiK13z.xsRiaXAjcwey2h5yceK8THR/f3l5GXhV.sSuUUt3Vq"], ["created_at", "2019-12-06 01:34:50.787601"], ["updated_at", "2019-12-06 01:34:50.787601"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.789799"], ["updated_at", "2019-12-06 01:34:50.789799"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/746” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.791647"], ["last_sign_in_at", "2019-12-06 01:34:50.791647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.792153"], ["id", 852]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"746"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 746], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 746]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Gx99QQsKSykXwhEgEGemTucx4htMpqtrh.0CKSSqmvRHXQEdc6Fi6"], ["created_at", "2019-12-06 01:34:50.803344"], ["updated_at", "2019-12-06 01:34:50.803344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.805497"], ["updated_at", "2019-12-06 01:34:50.805497"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/747” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.807500"], ["last_sign_in_at", "2019-12-06 01:34:50.807500"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.808085"], ["id", 853]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"747"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 747], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 747]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9/4yRAT7M7qHS2rSreqsqeZ6EtxmEQyzgzR8FwGu.lHmrt4Ry8SD."], ["created_at", "2019-12-06 01:34:50.821940"], ["updated_at", "2019-12-06 01:34:50.821940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.824222"], ["updated_at", "2019-12-06 01:34:50.824222"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/748” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.826325"], ["last_sign_in_at", "2019-12-06 01:34:50.826325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.827072"], ["id", 854]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"748"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Qk/nQN6aPZYj5pF8NxkpR.Fmuqfn1mVMiwCRfVCfswIWf0wqaWoq6"], ["created_at", "2019-12-06 01:34:50.835580"], ["updated_at", "2019-12-06 01:34:50.835580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:34:50.837841"], ["updated_at", "2019-12-06 01:34:50.837841"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/749” for 127.0.0.1 at 2019-12-05 22:34:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:34:50.839735"], ["last_sign_in_at", "2019-12-06 01:34:50.839735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:34:50.840222"], ["id", 855]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"749"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:29.668645"], ["updated_at", "2019-12-06 01:35:29.668645"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8Cx2AeAsQNuEoJYLXOSNwOQ1IhLhprf589TEElS/ndm7CvkBV71mS"], ["created_at", "2019-12-06 01:35:29.716770"], ["updated_at", "2019-12-06 01:35:29.716770"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:29.723595"], ["updated_at", "2019-12-06 01:35:29.723595"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eb3U/9BmZUSfgLEf6Kl8dOeXQU/6qWx3mTDYxZOzjFm3Y5JCd5hFu"], ["created_at", "2019-12-06 01:35:29.727804"], ["updated_at", "2019-12-06 01:35:29.727804"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 751], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 857], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 857], ["room_id", 751], ["created_at", "2019-12-06 01:35:29.774427"], ["updated_at", "2019-12-06 01:35:29.774427"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:29.780642"], ["updated_at", "2019-12-06 01:35:29.780642"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rj09PTkygy07M91dwkt1mef3pSFptTBBcSthaGZkDcMqfXC.RU816"], ["created_at", "2019-12-06 01:35:29.784665"], ["updated_at", "2019-12-06 01:35:29.784665"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 752], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 858], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 858], ["room_id", 752], ["created_at", "2019-12-06 01:35:29.788813"], ["updated_at", "2019-12-06 01:35:29.788813"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:29.795353"], ["updated_at", "2019-12-06 01:35:29.795353"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$V5d1PM2plqh14mgbIY5YbuwI0db5E.2DTm3xJ4ujt1hEb1b21gjaK"], ["created_at", "2019-12-06 01:35:29.799569"], ["updated_at", "2019-12-06 01:35:29.799569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 753], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 859], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 859], ["room_id", 753], ["created_at", "2019-12-06 01:35:29.803551"], ["updated_at", "2019-12-06 01:35:29.803551"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:29.809079"], ["updated_at", "2019-12-06 01:35:29.809079"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$X4wb.kounkACRcr.tF4JzOFFPWhJzQUQJCPThgLQsZGhlXK4ZnuiK"], ["created_at", "2019-12-06 01:35:29.813739"], ["updated_at", "2019-12-06 01:35:29.813739"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 754], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 860], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 860], ["room_id", 754], ["created_at", "2019-12-06 01:35:29.818129"], ["updated_at", "2019-12-06 01:35:29.818129"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 139ms (Views: 108.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$w9QkjZVnv0xrI4qyPhiLvOpg3AJ62G//khSHH8wGlCEPY1amQ/4vS"], ["created_at", "2019-12-06 01:35:30.413966"], ["updated_at", "2019-12-06 01:35:30.413966"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.416047"], ["updated_at", "2019-12-06 01:35:30.416047"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.431849"], ["last_sign_in_at", "2019-12-06 01:35:30.431849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.432473"], ["id", 861]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"755"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 755], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 861], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 861], ["room_id", 755], ["created_at", "2019-12-06 01:35:30.448481"], ["updated_at", "2019-12-06 01:35:30.448481"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 755], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$m0yFsQg.nc0HY3VPRF2ka.1fZBJKFtgZUsyx4qoVNjjpPkOQg6BRe"], ["created_at", "2019-12-06 01:35:30.457327"], ["updated_at", "2019-12-06 01:35:30.457327"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.459525"], ["updated_at", "2019-12-06 01:35:30.459525"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.462025"], ["last_sign_in_at", "2019-12-06 01:35:30.462025"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.462604"], ["id", 862]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"756"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 756], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 862], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 862], ["room_id", 756], ["created_at", "2019-12-06 01:35:30.467484"], ["updated_at", "2019-12-06 01:35:30.467484"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$E043UF7pWZtTsL4fmKx4D.gYTaD9QidmI46bVntYVNZZDLSbEfqde"], ["created_at", "2019-12-06 01:35:30.475440"], ["updated_at", "2019-12-06 01:35:30.475440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.477470"], ["updated_at", "2019-12-06 01:35:30.477470"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.480070"], ["last_sign_in_at", "2019-12-06 01:35:30.480070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.480589"], ["id", 863]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"757"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 757], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$t.7DDeNECBumMVVeARIUK.3mqd9dBhzD0cb1eVpspLsSiicQCMZvC"], ["created_at", "2019-12-06 01:35:30.489005"], ["updated_at", "2019-12-06 01:35:30.489005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.491195"], ["updated_at", "2019-12-06 01:35:30.491195"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.493326"], ["last_sign_in_at", "2019-12-06 01:35:30.493326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.493876"], ["id", 864]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"758"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bVdIiQn5NDJm9geO4x.fV.WNZgteJ3gcgtUQFrq7CQIJkOvN93Rla"], ["created_at", "2019-12-06 01:35:30.503248"], ["updated_at", "2019-12-06 01:35:30.503248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.505211"], ["updated_at", "2019-12-06 01:35:30.505211"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 759], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 865], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 865], ["room_id", 759], ["created_at", "2019-12-06 01:35:30.508719"], ["updated_at", "2019-12-06 01:35:30.508719"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/759” for 127.0.0.1 at 2019-12-05 22:35:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.511315"], ["last_sign_in_at", "2019-12-06 01:35:30.511315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.511910"], ["id", 865]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"759"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 759], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '759')
Rendered appointments/show.html.erb within layouts/application (20.9ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 346ms (Views: 328.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mr2OYXsD.BYOWMVH28Gbb.0UANi14wRbvGmI/zu.6lAONgOJXNAZS"], ["created_at", "2019-12-06 01:35:30.867731"], ["updated_at", "2019-12-06 01:35:30.867731"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.869874"], ["updated_at", "2019-12-06 01:35:30.869874"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 760], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 866], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 866], ["room_id", 760], ["created_at", "2019-12-06 01:35:30.873664"], ["updated_at", "2019-12-06 01:35:30.873664"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 760], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 866], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 866], ["room_id", 760], ["created_at", "2019-12-06 01:35:30.877546"], ["updated_at", "2019-12-06 01:35:30.877546"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.880170"], ["last_sign_in_at", "2019-12-06 01:35:30.880170"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.880692"], ["id", 866]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 866]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 36ms (Views: 4.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FhoxKu2fyZ8IcebqH7GEAu2dg4cYt5DQxP4rlRq/1BN6cf5XruJUK"], ["created_at", "2019-12-06 01:35:30.925315"], ["updated_at", "2019-12-06 01:35:30.925315"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.927603"], ["updated_at", "2019-12-06 01:35:30.927603"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 761], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 867], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 867], ["room_id", 761], ["created_at", "2019-12-06 01:35:30.931525"], ["updated_at", "2019-12-06 01:35:30.931525"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 761], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 867], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 867], ["room_id", 761], ["created_at", "2019-12-06 01:35:30.935398"], ["updated_at", "2019-12-06 01:35:30.935398"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.937715"], ["last_sign_in_at", "2019-12-06 01:35:30.937715"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.938267"], ["id", 867]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 867]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YtAA6/GHqKdypLg2dZBP.O4OpXaQX/koSPihkPsjiSPPXvV/KP0vq"], ["created_at", "2019-12-06 01:35:30.952832"], ["updated_at", "2019-12-06 01:35:30.952832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:30.955072"], ["updated_at", "2019-12-06 01:35:30.955072"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 762], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 868], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 868], ["room_id", 762], ["created_at", "2019-12-06 01:35:30.971701"], ["updated_at", "2019-12-06 01:35:30.971701"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/369” for 127.0.0.1 at 2019-12-05 22:35:30 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.974018"], ["last_sign_in_at", "2019-12-06 01:35:30.974018"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.974546"], ["id", 868]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"369"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 369], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 369]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GIxbEH2h7rQV.wknsC.T7.p0IrbEIF7tvewBS9NlRmGbaFlgstl2K"], ["created_at", "2019-12-06 01:35:30.988734"], ["updated_at", "2019-12-06 01:35:30.988734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:35:30 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:30.991084"], ["last_sign_in_at", "2019-12-06 01:35:30.991084"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:30.991615"], ["id", 869]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 34ms (Views: 18.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zetWeXjVhaB79Iet3Yo8ROYr8dPZPHTuhd.3SdB/zeRs5fQ7Nx/lm"], ["created_at", "2019-12-06 01:35:31.035026"], ["updated_at", "2019-12-06 01:35:31.035026"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.037209"], ["updated_at", "2019-12-06 01:35:31.037209"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 763], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 870], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 870], ["room_id", 763], ["created_at", "2019-12-06 01:35:31.040901"], ["updated_at", "2019-12-06 01:35:31.040901"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 763], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 870], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 870], ["room_id", 763], ["created_at", "2019-12-06 01:35:31.044810"], ["updated_at", "2019-12-06 01:35:31.044810"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.047005"], ["last_sign_in_at", "2019-12-06 01:35:31.047005"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.047580"], ["id", 870]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 763], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 870], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 870], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5jlaQo.fH/SXB5Wqho1m1O0MWGzqS3ls.JUMifVIooiF2cHsL0wZu"], ["created_at", "2019-12-06 01:35:31.062349"], ["updated_at", "2019-12-06 01:35:31.062349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.064631"], ["updated_at", "2019-12-06 01:35:31.064631"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 764], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 871], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 871], ["room_id", 764], ["created_at", "2019-12-06 01:35:31.069482"], ["updated_at", "2019-12-06 01:35:31.069482"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 764], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 871], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 871], ["room_id", 764], ["created_at", "2019-12-06 01:35:31.074388"], ["updated_at", "2019-12-06 01:35:31.074388"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.077199"], ["last_sign_in_at", "2019-12-06 01:35:31.077199"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.077859"], ["id", 871]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 764], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 871], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 871], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MK0AB21.OKKX1b8vM5L/jeoi4Cr2UiaPKtiZvrPqBwqChHbGUkFdC"], ["created_at", "2019-12-06 01:35:31.092586"], ["updated_at", "2019-12-06 01:35:31.092586"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.095105"], ["updated_at", "2019-12-06 01:35:31.095105"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 765], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 872], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 872], ["room_id", 765], ["created_at", "2019-12-06 01:35:31.099081"], ["updated_at", "2019-12-06 01:35:31.099081"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 765], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 872], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 872], ["room_id", 765], ["created_at", "2019-12-06 01:35:31.103076"], ["updated_at", "2019-12-06 01:35:31.103076"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.105432"], ["last_sign_in_at", "2019-12-06 01:35:31.105432"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.105948"], ["id", 872]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mUanx1w14c4IDJipXnTR5.rrHdsuWnplTlqPln58ko8FDn8cC.Jba"], ["created_at", "2019-12-06 01:35:31.117729"], ["updated_at", "2019-12-06 01:35:31.117729"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.120099"], ["updated_at", "2019-12-06 01:35:31.120099"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 766], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 873], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 873], ["room_id", 766], ["created_at", "2019-12-06 01:35:31.124022"], ["updated_at", "2019-12-06 01:35:31.124022"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 766], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 873], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 873], ["room_id", 766], ["created_at", "2019-12-06 01:35:31.128504"], ["updated_at", "2019-12-06 01:35:31.128504"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.131098"], ["last_sign_in_at", "2019-12-06 01:35:31.131098"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.131630"], ["id", 873]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gAP9pHuxZMsFhLsmv2lsluvMEhfXCFjGnQP9ZauBonL8ikGneh7Rq"], ["created_at", "2019-12-06 01:35:31.146389"], ["updated_at", "2019-12-06 01:35:31.146389"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.149040"], ["last_sign_in_at", "2019-12-06 01:35:31.149040"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.149627"], ["id", 874]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 65ms (Views: 48.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9bokyHdssgfkFiNflbGZae7cq4oCEhV6bs6n2qXUsgt.EJi0FG8Yu"], ["created_at", "2019-12-06 01:35:31.225689"], ["updated_at", "2019-12-06 01:35:31.225689"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.228441"], ["last_sign_in_at", "2019-12-06 01:35:31.228441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.229005"], ["id", 875]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xZvrMdz3sYdZKu/I3Ekf/.wy9zfnMYvOFPsP1pvd1EOhUTl/Btv0q"], ["created_at", "2019-12-06 01:35:31.240301"], ["updated_at", "2019-12-06 01:35:31.240301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.242761"], ["last_sign_in_at", "2019-12-06 01:35:31.242761"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.243504"], ["id", 876]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ynU58GSRk8jdMNCdOJRrfOJDmASxN336I8U0ts3CO.oTcufWNgPUe"], ["created_at", "2019-12-06 01:35:31.273814"], ["updated_at", "2019-12-06 01:35:31.273814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.9ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.276401"], ["last_sign_in_at", "2019-12-06 01:35:31.276401"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.277235"], ["id", 877]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FcH06CVhReNWCSK7hLFyiebDspM9D0.F5wFDCSdNu3T41L6Iuf956"], ["created_at", "2019-12-06 01:35:31.303770"], ["updated_at", "2019-12-06 01:35:31.303770"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.306452"], ["updated_at", "2019-12-06 01:35:31.306452"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/767” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.309382"], ["last_sign_in_at", "2019-12-06 01:35:31.309382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.309899"], ["id", 878]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"767"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 767], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hS4FSKej2m67O4be9OJhKO1qP0uok0wCZhqDLHCfdBCJNWLkPWSF6"], ["created_at", "2019-12-06 01:35:31.338840"], ["updated_at", "2019-12-06 01:35:31.338840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.341096"], ["updated_at", "2019-12-06 01:35:31.341096"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/768” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.343559"], ["last_sign_in_at", "2019-12-06 01:35:31.343559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.344134"], ["id", 879]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"768"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 768], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.354673"], ["updated_at", "2019-12-06 01:35:31.354673"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/769” for 127.0.0.1 at 2019-12-05 22:35:31 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"769"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KundYOZmXEMTphExD/yaD.VNal6ixEKzjSCg2SEiP9cw8HkDlwseu"], ["created_at", "2019-12-06 01:35:31.366585"], ["updated_at", "2019-12-06 01:35:31.366585"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.368934"], ["updated_at", "2019-12-06 01:35:31.368934"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/770/edit” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.371288"], ["last_sign_in_at", "2019-12-06 01:35:31.371288"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.371836"], ["id", 880]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"770"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 770], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 22ms (Views: 4.9ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TA7diI5CSyQe2.hyy9yKbeOr6Bc4fwZRyTBvS99VLSXlW0EF5oQ3."], ["created_at", "2019-12-06 01:35:31.402750"], ["updated_at", "2019-12-06 01:35:31.402750"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.405290"], ["updated_at", "2019-12-06 01:35:31.405290"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/771/edit” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.407562"], ["last_sign_in_at", "2019-12-06 01:35:31.407562"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.408136"], ["id", 881]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"771"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 771], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.421136"], ["updated_at", "2019-12-06 01:35:31.421136"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/772” for 127.0.0.1 at 2019-12-05 22:35:31 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"772"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aa0njKNuklitD/uCogQ9SunCAYaVhjHwSPk7iwPeN49io0tNyWu1G"], ["created_at", "2019-12-06 01:35:31.433785"], ["updated_at", "2019-12-06 01:35:31.433785"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.436937"], ["last_sign_in_at", "2019-12-06 01:35:31.436937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.437475"], ["id", 882]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.440840"], ["updated_at", "2019-12-06 01:35:31.440840"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FlFp.IG5J6jcdyw8l3FQfOXx0P5vGceTWRYG.TCa2.9ksMINuOfn."], ["created_at", "2019-12-06 01:35:31.450225"], ["updated_at", "2019-12-06 01:35:31.450225"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.453150"], ["last_sign_in_at", "2019-12-06 01:35:31.453150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.453726"], ["id", 883]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.457378"], ["updated_at", "2019-12-06 01:35:31.457378"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RssyYEKmdAgn5psUAsAGOe3X9EPHASu2mXGKXAiI.8towMNM1ziDy"], ["created_at", "2019-12-06 01:35:31.466482"], ["updated_at", "2019-12-06 01:35:31.466482"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.469530"], ["last_sign_in_at", "2019-12-06 01:35:31.469530"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.470033"], ["id", 884]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8duFRqnbN6r7zHMnpbON/uYvcJXnZo1XK9nSpWmqTJGv2BTHQgTpq"], ["created_at", "2019-12-06 01:35:31.482460"], ["updated_at", "2019-12-06 01:35:31.482460"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.485345"], ["last_sign_in_at", "2019-12-06 01:35:31.485345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.486108"], ["id", 885]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PLJwmRHmwJWJyAE0bcsRJOyWc6DOmoVvOL8tGbYpSjbuXjjSQ7/pG"], ["created_at", "2019-12-06 01:35:31.507301"], ["updated_at", "2019-12-06 01:35:31.507301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.509823"], ["last_sign_in_at", "2019-12-06 01:35:31.509823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.510335"], ["id", 886]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iKbi8c5v8qeiMxtnRfFR0.pwSRpp6bDYYPXW9HHe.IhIzGGzzW9Tu"], ["created_at", "2019-12-06 01:35:31.521287"], ["updated_at", "2019-12-06 01:35:31.521287"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.523516"], ["updated_at", "2019-12-06 01:35:31.523516"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/775” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.525741"], ["last_sign_in_at", "2019-12-06 01:35:31.525741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.526229"], ["id", 887]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"775"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 775], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:35:31.531403"], ["id", 775]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/775 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$66qYn5EneBLG.DVYnQuWiemrtYm9Ej3ARWIfNrl7SiS5IaIXjMXfm"], ["created_at", "2019-12-06 01:35:31.539880"], ["updated_at", "2019-12-06 01:35:31.539880"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.542136"], ["updated_at", "2019-12-06 01:35:31.542136"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/776” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.545138"], ["last_sign_in_at", "2019-12-06 01:35:31.545138"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.545763"], ["id", 888]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"776"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 776], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:35:31.549635"], ["id", 776]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/776 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zhG83aXm2aCd.xSCW7Npuuxm4yRqx4fLJljHyWvELH0Wm8C9DAmhK"], ["created_at", "2019-12-06 01:35:31.558436"], ["updated_at", "2019-12-06 01:35:31.558436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.560877"], ["updated_at", "2019-12-06 01:35:31.560877"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/777” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.563694"], ["last_sign_in_at", "2019-12-06 01:35:31.563694"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.564259"], ["id", 889]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"777"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 777], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vD0YU9ncejE.q9qKo.cnDuHzZq6gM4h.SfgQKTM1w/3uvrQUPocGu"], ["created_at", "2019-12-06 01:35:31.578749"], ["updated_at", "2019-12-06 01:35:31.578749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.581004"], ["updated_at", "2019-12-06 01:35:31.581004"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/778” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.583364"], ["last_sign_in_at", "2019-12-06 01:35:31.583364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.583888"], ["id", 890]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"778"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 778], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8dZpgktXkQLBL0RjuB.WXebVZbR.OPno6uOBxOdk06Bro4yranq1y"], ["created_at", "2019-12-06 01:35:31.598112"], ["updated_at", "2019-12-06 01:35:31.598112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.600683"], ["last_sign_in_at", "2019-12-06 01:35:31.600683"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.601166"], ["id", 891]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tKo6yVTeMyQ0WzypFs6qB.8W2Covj6i59ur73/TWXexpq8e03INym"], ["created_at", "2019-12-06 01:35:31.611659"], ["updated_at", "2019-12-06 01:35:31.611659"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.614052"], ["updated_at", "2019-12-06 01:35:31.614052"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/779” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.615964"], ["last_sign_in_at", "2019-12-06 01:35:31.615964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.616480"], ["id", 892]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"779"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 779], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 779]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wB/Y7PGvhn6daSG3zdyTCe8TYTO3KrIlFJHSqNTFGliOyiPprh/cW"], ["created_at", "2019-12-06 01:35:31.627748"], ["updated_at", "2019-12-06 01:35:31.627748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.630360"], ["updated_at", "2019-12-06 01:35:31.630360"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/780” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.632535"], ["last_sign_in_at", "2019-12-06 01:35:31.632535"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.633114"], ["id", 893]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"780"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 780], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 780]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UvF.ZVPswQHjwWzQNX9rQe/fztgkNnu.FyAK9iwZgNmpYEr88ptCi"], ["created_at", "2019-12-06 01:35:31.644431"], ["updated_at", "2019-12-06 01:35:31.644431"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.646961"], ["updated_at", "2019-12-06 01:35:31.646961"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/781” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.648851"], ["last_sign_in_at", "2019-12-06 01:35:31.648851"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.649333"], ["id", 894]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"781"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e1mlquKkrUC3as5oUD23dOYpOxPCTYNKjZ.XLCsutGvJCoZjq7vKW"], ["created_at", "2019-12-06 01:35:31.658000"], ["updated_at", "2019-12-06 01:35:31.658000"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:35:31.660129"], ["updated_at", "2019-12-06 01:35:31.660129"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/782” for 127.0.0.1 at 2019-12-05 22:35:31 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:35:31.662423"], ["last_sign_in_at", "2019-12-06 01:35:31.662423"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:35:31.662978"], ["id", 895]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"782"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wqe30Vramclg66RbTl0K1OdTEYBP50pVqsonIok0p5b/IZr197LDy"], ["created_at", "2019-12-06 01:37:18.227205"], ["updated_at", "2019-12-06 01:37:18.227205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.236159"], ["updated_at", "2019-12-06 01:37:18.236159"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zgmJbDAxw3xWPvRE.j5/Gu5XtaNzncezuIeV1w0AVb.4.dWi6BsmG"], ["created_at", "2019-12-06 01:37:18.246063"], ["updated_at", "2019-12-06 01:37:18.246063"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.248505"], ["updated_at", "2019-12-06 01:37:18.248505"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 784], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 897], ["LIMIT", 1]]
SQL (1.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 897], ["room_id", 784], ["created_at", "2019-12-06 01:37:18.296482"], ["updated_at", "2019-12-06 01:37:18.296482"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1fDVONlJoDFVP0hfT6M91.gx.bi4zHbRUtD/F7OBE0DygctNtfRwq"], ["created_at", "2019-12-06 01:37:18.305705"], ["updated_at", "2019-12-06 01:37:18.305705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.308113"], ["updated_at", "2019-12-06 01:37:18.308113"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 785], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 898], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 898], ["room_id", 785], ["created_at", "2019-12-06 01:37:18.312249"], ["updated_at", "2019-12-06 01:37:18.312249"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rq7PJvhcZh8rNCMMHjtJZu71NSjoEs3EtLnVGefCt7vyJln4/T8Hy"], ["created_at", "2019-12-06 01:37:18.320960"], ["updated_at", "2019-12-06 01:37:18.320960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.323124"], ["updated_at", "2019-12-06 01:37:18.323124"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 786], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 899], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 899], ["room_id", 786], ["created_at", "2019-12-06 01:37:18.327052"], ["updated_at", "2019-12-06 01:37:18.327052"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ral45WL/SLAIipVuPr1Y7eiunlDaQl6b2ovnVHxLka6mA8oDS5ah2"], ["created_at", "2019-12-06 01:37:18.334912"], ["updated_at", "2019-12-06 01:37:18.334912"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.337348"], ["updated_at", "2019-12-06 01:37:18.337348"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 787], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 900], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 900], ["room_id", 787], ["created_at", "2019-12-06 01:37:18.341453"], ["updated_at", "2019-12-06 01:37:18.341453"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 142ms (Views: 110.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KW8/Q8/eO3qBR/q9XU5CouRFiuS80oLVJNXeGdLq.BieXEReQnEEe"], ["created_at", "2019-12-06 01:37:18.951080"], ["updated_at", "2019-12-06 01:37:18.951080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.953409"], ["updated_at", "2019-12-06 01:37:18.953409"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:37:18 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:18.969328"], ["last_sign_in_at", "2019-12-06 01:37:18.969328"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:18.970123"], ["id", 901]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"788"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 788], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 901], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 901], ["room_id", 788], ["created_at", "2019-12-06 01:37:18.986555"], ["updated_at", "2019-12-06 01:37:18.986555"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 788], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NHyilKvXqHz0XKani/P.jeT0RhZhpkt7d0Oov0Z0KEpTd2AONgGrS"], ["created_at", "2019-12-06 01:37:18.996026"], ["updated_at", "2019-12-06 01:37:18.996026"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:18.998410"], ["updated_at", "2019-12-06 01:37:18.998410"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.001068"], ["last_sign_in_at", "2019-12-06 01:37:19.001068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.001685"], ["id", 902]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"789"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 789], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 902], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 902], ["room_id", 789], ["created_at", "2019-12-06 01:37:19.006826"], ["updated_at", "2019-12-06 01:37:19.006826"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$s/PZyYylqYrN9Fcxsbc0Q.aZUr3Q37KiYD.rGGGS0FwgXEGbEGYci"], ["created_at", "2019-12-06 01:37:19.016242"], ["updated_at", "2019-12-06 01:37:19.016242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.018403"], ["updated_at", "2019-12-06 01:37:19.018403"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.021095"], ["last_sign_in_at", "2019-12-06 01:37:19.021095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.021702"], ["id", 903]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"790"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 790], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/6y4hhQHC.or2lZWeN7qbOa7m/igXHic3pJNYK/q/yn6uysi4uyea"], ["created_at", "2019-12-06 01:37:19.031004"], ["updated_at", "2019-12-06 01:37:19.031004"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.033559"], ["updated_at", "2019-12-06 01:37:19.033559"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.035906"], ["last_sign_in_at", "2019-12-06 01:37:19.035906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.036391"], ["id", 904]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"791"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jO8ez71kyVAsTtquC7oKL.59CikquOJqNAv6vdktXsKvIH4rDrEaa"], ["created_at", "2019-12-06 01:37:19.046595"], ["updated_at", "2019-12-06 01:37:19.046595"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.049348"], ["updated_at", "2019-12-06 01:37:19.049348"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 792], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 905], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 905], ["room_id", 792], ["created_at", "2019-12-06 01:37:19.053649"], ["updated_at", "2019-12-06 01:37:19.053649"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/792” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.056002"], ["last_sign_in_at", "2019-12-06 01:37:19.056002"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.056524"], ["id", 905]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"792"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 792], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '792')
Rendered appointments/show.html.erb within layouts/application (20.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 355ms (Views: 337.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dZl2b8RPXCMmgGcsBABV3ebO0FaZoeOVfSoLoBs60AEBgC8.C4nqS"], ["created_at", "2019-12-06 01:37:19.421151"], ["updated_at", "2019-12-06 01:37:19.421151"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.423453"], ["updated_at", "2019-12-06 01:37:19.423453"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 793], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 906], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 906], ["room_id", 793], ["created_at", "2019-12-06 01:37:19.427344"], ["updated_at", "2019-12-06 01:37:19.427344"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 793], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 906], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 906], ["room_id", 793], ["created_at", "2019-12-06 01:37:19.432338"], ["updated_at", "2019-12-06 01:37:19.432338"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.434753"], ["last_sign_in_at", "2019-12-06 01:37:19.434753"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.435274"], ["id", 906]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 906]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 37ms (Views: 4.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$q4kSk.ErSDq.M8ropVdPcuCpVgdI9xKJt0ysTAEv7fB0s//nYL2CW"], ["created_at", "2019-12-06 01:37:19.481180"], ["updated_at", "2019-12-06 01:37:19.481180"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.483557"], ["updated_at", "2019-12-06 01:37:19.483557"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 794], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 907], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 907], ["room_id", 794], ["created_at", "2019-12-06 01:37:19.487232"], ["updated_at", "2019-12-06 01:37:19.487232"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 794], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 907], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 907], ["room_id", 794], ["created_at", "2019-12-06 01:37:19.491310"], ["updated_at", "2019-12-06 01:37:19.491310"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.493593"], ["last_sign_in_at", "2019-12-06 01:37:19.493593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.494116"], ["id", 907]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 907]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uDBQerS/BA4x59UXX.MQS.iMCbmcnbV4JKq.1y02iyPFdE615rxLG"], ["created_at", "2019-12-06 01:37:19.508259"], ["updated_at", "2019-12-06 01:37:19.508259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.510764"], ["updated_at", "2019-12-06 01:37:19.510764"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 795], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 908], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 908], ["room_id", 795], ["created_at", "2019-12-06 01:37:19.515685"], ["updated_at", "2019-12-06 01:37:19.515685"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/389” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.518106"], ["last_sign_in_at", "2019-12-06 01:37:19.518106"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.518622"], ["id", 908]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"389"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 389], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 389]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 16ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CGavUO6iwBUDmC3.UQuaf.t0exnkgrSdK10/q.uWsAIViWiGWOf6q"], ["created_at", "2019-12-06 01:37:19.545978"], ["updated_at", "2019-12-06 01:37:19.545978"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.548608"], ["last_sign_in_at", "2019-12-06 01:37:19.548608"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.549264"], ["id", 909]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 38ms (Views: 21.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N8..wkuYlUkAb2NsNwSZveTxaPbnKLTyKL05XvYH16lQJQ35cMAFy"], ["created_at", "2019-12-06 01:37:19.596510"], ["updated_at", "2019-12-06 01:37:19.596510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.598964"], ["updated_at", "2019-12-06 01:37:19.598964"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 796], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 910], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 910], ["room_id", 796], ["created_at", "2019-12-06 01:37:19.603222"], ["updated_at", "2019-12-06 01:37:19.603222"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 796], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 910], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 910], ["room_id", 796], ["created_at", "2019-12-06 01:37:19.607191"], ["updated_at", "2019-12-06 01:37:19.607191"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.609613"], ["last_sign_in_at", "2019-12-06 01:37:19.609613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.610299"], ["id", 910]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 796], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 910], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 910], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N9cfP5cZGsKf5.2fSwVTwex2sYe3o1lM7Yn5edo04rTDuEaAXAx.C"], ["created_at", "2019-12-06 01:37:19.624618"], ["updated_at", "2019-12-06 01:37:19.624618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.626880"], ["updated_at", "2019-12-06 01:37:19.626880"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 797], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 911], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 911], ["room_id", 797], ["created_at", "2019-12-06 01:37:19.631129"], ["updated_at", "2019-12-06 01:37:19.631129"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 797], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 911], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 911], ["room_id", 797], ["created_at", "2019-12-06 01:37:19.635499"], ["updated_at", "2019-12-06 01:37:19.635499"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.637877"], ["last_sign_in_at", "2019-12-06 01:37:19.637877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.638395"], ["id", 911]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 797], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 911], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 911], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ItjCE.wcAOGvvbwEuoLZ7u4X8me4vzu.FQweg3GLoEQeeuBnqr1Hu"], ["created_at", "2019-12-06 01:37:19.653524"], ["updated_at", "2019-12-06 01:37:19.653524"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.655717"], ["updated_at", "2019-12-06 01:37:19.655717"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 798], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 912], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 912], ["room_id", 798], ["created_at", "2019-12-06 01:37:19.659559"], ["updated_at", "2019-12-06 01:37:19.659559"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 798], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 912], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 912], ["room_id", 798], ["created_at", "2019-12-06 01:37:19.663446"], ["updated_at", "2019-12-06 01:37:19.663446"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.666361"], ["last_sign_in_at", "2019-12-06 01:37:19.666361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.666915"], ["id", 912]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wzgff/IzPXp5wn7rmua5zOza1mivGEusNBCboxuNXG1AUVJkobPD."], ["created_at", "2019-12-06 01:37:19.678798"], ["updated_at", "2019-12-06 01:37:19.678798"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.681861"], ["updated_at", "2019-12-06 01:37:19.681861"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 799], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 913], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 913], ["room_id", 799], ["created_at", "2019-12-06 01:37:19.686477"], ["updated_at", "2019-12-06 01:37:19.686477"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 799], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 913], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 913], ["room_id", 799], ["created_at", "2019-12-06 01:37:19.691078"], ["updated_at", "2019-12-06 01:37:19.691078"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.693665"], ["last_sign_in_at", "2019-12-06 01:37:19.693665"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.694260"], ["id", 913]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0aZ/BhdU5YBUYlpFL.exeuo.CHqPxbpNKweviAb3JxBwh6sSVU8NG"], ["created_at", "2019-12-06 01:37:19.710181"], ["updated_at", "2019-12-06 01:37:19.710181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.713056"], ["last_sign_in_at", "2019-12-06 01:37:19.713056"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.713644"], ["id", 914]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 64ms (Views: 48.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GitS6bu9JABm/gtmVM2eweqM1gDfw2EPzcQBp4Fm7TG313yhzZJZS"], ["created_at", "2019-12-06 01:37:19.790659"], ["updated_at", "2019-12-06 01:37:19.790659"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.793081"], ["last_sign_in_at", "2019-12-06 01:37:19.793081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.793606"], ["id", 915]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ujDHBs2UU53HK867EfbDZ.DwglB433es6btYVYzRiOU4yDHV9yX9y"], ["created_at", "2019-12-06 01:37:19.803722"], ["updated_at", "2019-12-06 01:37:19.803722"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.806231"], ["last_sign_in_at", "2019-12-06 01:37:19.806231"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.806888"], ["id", 916]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 4.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L77rGHGB5OQafMwJn/C06uBYLnp1dtClAw5pTDNcxvVTNMJaNL5/q"], ["created_at", "2019-12-06 01:37:19.837790"], ["updated_at", "2019-12-06 01:37:19.837790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.841025"], ["last_sign_in_at", "2019-12-06 01:37:19.841025"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.841621"], ["id", 917]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:37:19 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7loJxJA2/Bccw34mGUlB7eIeHeTwoA71qomAl3PSdtBvDndglR0EW"], ["created_at", "2019-12-06 01:37:19.865679"], ["updated_at", "2019-12-06 01:37:19.865679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.868466"], ["updated_at", "2019-12-06 01:37:19.868466"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/800” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.871652"], ["last_sign_in_at", "2019-12-06 01:37:19.871652"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.872208"], ["id", 918]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"800"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 800], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qC2/4idDR5DxYIrHtKeQMuvlD4IyicM.11WhRRtDyvyrhpRSPC7Wy"], ["created_at", "2019-12-06 01:37:19.902950"], ["updated_at", "2019-12-06 01:37:19.902950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.905884"], ["updated_at", "2019-12-06 01:37:19.905884"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/801” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.908732"], ["last_sign_in_at", "2019-12-06 01:37:19.908732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.909243"], ["id", 919]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"801"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 801], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.921529"], ["updated_at", "2019-12-06 01:37:19.921529"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/802” for 127.0.0.1 at 2019-12-05 22:37:19 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"802"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MXlwfZicdDG1JRN.OIJwreAyIa3nrm3lSjazWyPnceLMP6wsXar7i"], ["created_at", "2019-12-06 01:37:19.933392"], ["updated_at", "2019-12-06 01:37:19.933392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.935825"], ["updated_at", "2019-12-06 01:37:19.935825"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/803/edit” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.938726"], ["last_sign_in_at", "2019-12-06 01:37:19.938726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.939227"], ["id", 920]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"803"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 803], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$594DDF2m1.UMWYLgj8Z75.9coEma1ZeMKCeD.U7kgZHIJBVq7Leky"], ["created_at", "2019-12-06 01:37:19.970461"], ["updated_at", "2019-12-06 01:37:19.970461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.973248"], ["updated_at", "2019-12-06 01:37:19.973248"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/804/edit” for 127.0.0.1 at 2019-12-05 22:37:19 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:19.975775"], ["last_sign_in_at", "2019-12-06 01:37:19.975775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:19.976507"], ["id", 921]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"804"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 804], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:19.989907"], ["updated_at", "2019-12-06 01:37:19.989907"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/805” for 127.0.0.1 at 2019-12-05 22:37:19 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"805"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tQHart50E4yUnL6EgGXjhevcCeOGFpC/MYTQnVxz7aldgM3YmWAKq"], ["created_at", "2019-12-06 01:37:20.002847"], ["updated_at", "2019-12-06 01:37:20.002847"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.006045"], ["last_sign_in_at", "2019-12-06 01:37:20.006045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.006568"], ["id", 922]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.010698"], ["updated_at", "2019-12-06 01:37:20.010698"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cbmB2CV/t8udHRotYOyP1OVOhEX94m544pK3DFeJTSRAXC2euu/Y6"], ["created_at", "2019-12-06 01:37:20.021123"], ["updated_at", "2019-12-06 01:37:20.021123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.024171"], ["last_sign_in_at", "2019-12-06 01:37:20.024171"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.024668"], ["id", 923]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.031466"], ["updated_at", "2019-12-06 01:37:20.031466"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P.L156ldpi7FL3Fyhi/53O5GoFIaxgbxlRq5V4lOB./C/VGC6dL8C"], ["created_at", "2019-12-06 01:37:20.040587"], ["updated_at", "2019-12-06 01:37:20.040587"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.043589"], ["last_sign_in_at", "2019-12-06 01:37:20.043589"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.044180"], ["id", 924]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.4ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aKc0vlrilTv4a1Ez2BEVb.Q2iUl0/j64EBPYcs9zIrRu9bvR4zyw6"], ["created_at", "2019-12-06 01:37:20.056790"], ["updated_at", "2019-12-06 01:37:20.056790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.059790"], ["last_sign_in_at", "2019-12-06 01:37:20.059790"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.060400"], ["id", 925]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qzRr9BoxGB1qkRwTsdUim.w.1bEulVCr2rk3eri7mtS8uJMnCmxtq"], ["created_at", "2019-12-06 01:37:20.073114"], ["updated_at", "2019-12-06 01:37:20.073114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.075981"], ["last_sign_in_at", "2019-12-06 01:37:20.075981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.076473"], ["id", 926]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qLA4xYByCUYFS4kCVGEBIOdFtE0Og6VJUO2aFd6DOg7sgSjiEPK7K"], ["created_at", "2019-12-06 01:37:20.088923"], ["updated_at", "2019-12-06 01:37:20.088923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.099255"], ["updated_at", "2019-12-06 01:37:20.099255"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/808” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.102057"], ["last_sign_in_at", "2019-12-06 01:37:20.102057"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.102581"], ["id", 927]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"808"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 808], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:37:20.106396"], ["id", 808]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/808 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Z0wbmR/xmGLrLvKp2D7DI.Pvtkdfeh9crcL2C7g5LBhwyDXFI7AXe"], ["created_at", "2019-12-06 01:37:20.115921"], ["updated_at", "2019-12-06 01:37:20.115921"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.118252"], ["updated_at", "2019-12-06 01:37:20.118252"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/809” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.120823"], ["last_sign_in_at", "2019-12-06 01:37:20.120823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.121348"], ["id", 928]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"809"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 809], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:37:20.125337"], ["id", 809]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/809 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j.kqFqwmLk4Y0i0UjKv1puOFI/qqTx6DItKTuoar.oLYiKGphmSpi"], ["created_at", "2019-12-06 01:37:20.134385"], ["updated_at", "2019-12-06 01:37:20.134385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.136673"], ["updated_at", "2019-12-06 01:37:20.136673"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/810” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.139390"], ["last_sign_in_at", "2019-12-06 01:37:20.139390"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.140091"], ["id", 929]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"810"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 810], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$baSxXQ7m2Jq6hez9xbXCFeEGaMIfK0kTfnjW8p.TCX.pVXakU3uJO"], ["created_at", "2019-12-06 01:37:20.154983"], ["updated_at", "2019-12-06 01:37:20.154983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.157280"], ["updated_at", "2019-12-06 01:37:20.157280"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/811” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.159640"], ["last_sign_in_at", "2019-12-06 01:37:20.159640"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.160262"], ["id", 930]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"811"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 811], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WzOKWZOYnsnatfFp7m1abu6q8ZfmJbIqYVYOnV1GOaYcykf3zDIju"], ["created_at", "2019-12-06 01:37:20.175606"], ["updated_at", "2019-12-06 01:37:20.175606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.178282"], ["last_sign_in_at", "2019-12-06 01:37:20.178282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.178843"], ["id", 931]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gEBYgLb0ZFRps6CFXysQt.x9jIElApE4htKuYbSFleP0L16UkjkeC"], ["created_at", "2019-12-06 01:37:20.190496"], ["updated_at", "2019-12-06 01:37:20.190496"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.193283"], ["updated_at", "2019-12-06 01:37:20.193283"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/812” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.195049"], ["last_sign_in_at", "2019-12-06 01:37:20.195049"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.195526"], ["id", 932]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"812"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 812], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 812]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uCigfBtPqQg3gxKZIDT1cug0DsNoKlpEXMWIF0zvmdRi7Eo/EOE16"], ["created_at", "2019-12-06 01:37:20.207015"], ["updated_at", "2019-12-06 01:37:20.207015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.209325"], ["updated_at", "2019-12-06 01:37:20.209325"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/813” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.211422"], ["last_sign_in_at", "2019-12-06 01:37:20.211422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.212046"], ["id", 933]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"813"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 813], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 813]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FXbQliz4tmLpmxF.O9nGO.eK7EKGreAWr/y2jAEtqTNpLZUe.AFTK"], ["created_at", "2019-12-06 01:37:20.223997"], ["updated_at", "2019-12-06 01:37:20.223997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.226272"], ["updated_at", "2019-12-06 01:37:20.226272"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/814” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.228162"], ["last_sign_in_at", "2019-12-06 01:37:20.228162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.228642"], ["id", 934]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"814"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.Yt6shtwnsAg7/SB7vEvMOIvMlLGFhY8BWGOJHeQIe0rpvajlvwGe"], ["created_at", "2019-12-06 01:37:20.237920"], ["updated_at", "2019-12-06 01:37:20.237920"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:37:20.240123"], ["updated_at", "2019-12-06 01:37:20.240123"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/815” for 127.0.0.1 at 2019-12-05 22:37:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:37:20.241949"], ["last_sign_in_at", "2019-12-06 01:37:20.241949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:37:20.242427"], ["id", 935]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"815"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$22/Mr0AL4okfyf9dtCmpouCcJ1YTyLosDgUsa/8QqwpTZd1IireKS"], ["created_at", "2019-12-06 01:51:50.906916"], ["updated_at", "2019-12-06 01:51:50.906916"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:50.915553"], ["updated_at", "2019-12-06 01:51:50.915553"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aWKXsZrqXaMW5U0IveFfZ.HXzQEQSG1ZyjyEmlBKHV5Q9X4aKHrfy"], ["created_at", "2019-12-06 01:51:50.923647"], ["updated_at", "2019-12-06 01:51:50.923647"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:50.926250"], ["updated_at", "2019-12-06 01:51:50.926250"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 817], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 937], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 937], ["room_id", 817], ["created_at", "2019-12-06 01:51:50.971910"], ["updated_at", "2019-12-06 01:51:50.971910"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ivyVP6ETsTO/YvwnO04/G.5mls8gdIXkBpYjzXKDVcB7SCMsxWL8a"], ["created_at", "2019-12-06 01:51:50.980202"], ["updated_at", "2019-12-06 01:51:50.980202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:50.982401"], ["updated_at", "2019-12-06 01:51:50.982401"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 818], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 938], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 938], ["room_id", 818], ["created_at", "2019-12-06 01:51:50.986177"], ["updated_at", "2019-12-06 01:51:50.986177"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3b.lfQgm.98HWSrPEv2z7u/E3J73GJtpAYL1jDXVFWzuDXWOvSTqi"], ["created_at", "2019-12-06 01:51:50.994431"], ["updated_at", "2019-12-06 01:51:50.994431"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:50.996714"], ["updated_at", "2019-12-06 01:51:50.996714"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 819], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 939], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 939], ["room_id", 819], ["created_at", "2019-12-06 01:51:51.000563"], ["updated_at", "2019-12-06 01:51:51.000563"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NUNEE7Xz1i7tnFwGrdsHr.ccgsqSzsaLvHeSESp0j.OLVgzI/gPQu"], ["created_at", "2019-12-06 01:51:51.007802"], ["updated_at", "2019-12-06 01:51:51.007802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.010277"], ["updated_at", "2019-12-06 01:51:51.010277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 820], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 940], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 940], ["room_id", 820], ["created_at", "2019-12-06 01:51:51.014126"], ["updated_at", "2019-12-06 01:51:51.014126"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 138ms (Views: 107.4ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KFhCJOYunqmSOS3mrum.0.UbiZ/mNBgFdV/diOQpIwRmiy/GYck0O"], ["created_at", "2019-12-06 01:51:51.611306"], ["updated_at", "2019-12-06 01:51:51.611306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.613526"], ["updated_at", "2019-12-06 01:51:51.613526"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:51:51 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:51.629470"], ["last_sign_in_at", "2019-12-06 01:51:51.629470"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:51.630146"], ["id", 941]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"821"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 821], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 941], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 941], ["room_id", 821], ["created_at", "2019-12-06 01:51:51.646866"], ["updated_at", "2019-12-06 01:51:51.646866"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 821], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nXPrjvaSPFjOPAAnGVjlZuCYSUCfrqShn604IuzZlmb5LjawNtJee"], ["created_at", "2019-12-06 01:51:51.656774"], ["updated_at", "2019-12-06 01:51:51.656774"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.659223"], ["updated_at", "2019-12-06 01:51:51.659223"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:51:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:51.661712"], ["last_sign_in_at", "2019-12-06 01:51:51.661712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:51.662252"], ["id", 942]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"822"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 822], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 942], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 942], ["room_id", 822], ["created_at", "2019-12-06 01:51:51.666999"], ["updated_at", "2019-12-06 01:51:51.666999"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dyub5PAAjM.mV6YKYFdW/eviB6D3yH2qBqO/IC4Ikscm.qr3HHmkW"], ["created_at", "2019-12-06 01:51:51.675449"], ["updated_at", "2019-12-06 01:51:51.675449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.677632"], ["updated_at", "2019-12-06 01:51:51.677632"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:51:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:51.679791"], ["last_sign_in_at", "2019-12-06 01:51:51.679791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:51.680333"], ["id", 943]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"823"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 823], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TKE4KKEw73frWg5tCOYOxOL3UVKpstCfwVHyukTvxfCVb4QsTBt96"], ["created_at", "2019-12-06 01:51:51.690016"], ["updated_at", "2019-12-06 01:51:51.690016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.692357"], ["updated_at", "2019-12-06 01:51:51.692357"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:51:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:51.694838"], ["last_sign_in_at", "2019-12-06 01:51:51.694838"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:51.695363"], ["id", 944]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"824"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$h9WRcPK6RTg79U5VTw7LLubvuf9awtGoJrT0cTDfBHOtGrdhNk6ku"], ["created_at", "2019-12-06 01:51:51.704796"], ["updated_at", "2019-12-06 01:51:51.704796"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:51.706674"], ["updated_at", "2019-12-06 01:51:51.706674"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 825], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 945], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 945], ["room_id", 825], ["created_at", "2019-12-06 01:51:51.710757"], ["updated_at", "2019-12-06 01:51:51.710757"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/825” for 127.0.0.1 at 2019-12-05 22:51:51 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:51.713038"], ["last_sign_in_at", "2019-12-06 01:51:51.713038"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:51.713613"], ["id", 945]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"825"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 825], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '825')
Rendered appointments/show.html.erb within layouts/application (25.8ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 351ms (Views: 333.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$32TZ/1xVBeZy34L6Bbg71eyUJIoPfJR.qhlt4YRh2h0dLpBuSQAmi"], ["created_at", "2019-12-06 01:51:52.073977"], ["updated_at", "2019-12-06 01:51:52.073977"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.076353"], ["updated_at", "2019-12-06 01:51:52.076353"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 826], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 946], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 946], ["room_id", 826], ["created_at", "2019-12-06 01:51:52.080218"], ["updated_at", "2019-12-06 01:51:52.080218"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 826], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 946], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 946], ["room_id", 826], ["created_at", "2019-12-06 01:51:52.083991"], ["updated_at", "2019-12-06 01:51:52.083991"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.086403"], ["last_sign_in_at", "2019-12-06 01:51:52.086403"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.086924"], ["id", 946]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 946]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 37ms (Views: 4.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iAKUHKKpVxXGEETLmMNRTOAp/SDHHRDYIVWIXTeh5TNe3Q/UYzt9i"], ["created_at", "2019-12-06 01:51:52.133020"], ["updated_at", "2019-12-06 01:51:52.133020"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.135290"], ["updated_at", "2019-12-06 01:51:52.135290"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 827], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 947], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 947], ["room_id", 827], ["created_at", "2019-12-06 01:51:52.139267"], ["updated_at", "2019-12-06 01:51:52.139267"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 827], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 947], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 947], ["room_id", 827], ["created_at", "2019-12-06 01:51:52.143371"], ["updated_at", "2019-12-06 01:51:52.143371"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.145870"], ["last_sign_in_at", "2019-12-06 01:51:52.145870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.146421"], ["id", 947]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 947]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$989zgByX75wFrlesaaaVx.Z7PYgkr/LrPywvRxQnz9LpdAe0J8fEu"], ["created_at", "2019-12-06 01:51:52.173245"], ["updated_at", "2019-12-06 01:51:52.173245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.175824"], ["updated_at", "2019-12-06 01:51:52.175824"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 828], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 948], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 948], ["room_id", 828], ["created_at", "2019-12-06 01:51:52.179638"], ["updated_at", "2019-12-06 01:51:52.179638"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/409” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.181881"], ["last_sign_in_at", "2019-12-06 01:51:52.181881"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.182447"], ["id", 948]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"409"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 409], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 409]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QUfotTwfIQlkac/ZYnifa.GtkKirlb20cY1J1pxlqGiyztkb.xCvO"], ["created_at", "2019-12-06 01:51:52.198867"], ["updated_at", "2019-12-06 01:51:52.198867"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.201163"], ["last_sign_in_at", "2019-12-06 01:51:52.201163"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.201679"], ["id", 949]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 34ms (Views: 18.3ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yGVPv2MLR7gDmYR7cA5dCuC913uPzoSAoP5ozaxrYls9S.XwhNI1q"], ["created_at", "2019-12-06 01:51:52.246095"], ["updated_at", "2019-12-06 01:51:52.246095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.248375"], ["updated_at", "2019-12-06 01:51:52.248375"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 829], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 950], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 950], ["room_id", 829], ["created_at", "2019-12-06 01:51:52.252218"], ["updated_at", "2019-12-06 01:51:52.252218"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 829], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 950], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 950], ["room_id", 829], ["created_at", "2019-12-06 01:51:52.256225"], ["updated_at", "2019-12-06 01:51:52.256225"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.259107"], ["last_sign_in_at", "2019-12-06 01:51:52.259107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.259677"], ["id", 950]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 829], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 950], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 950], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$muMlkKQiH69W0qvyIIufNOIpwey8m5qd.KWN93piFZDHAJuCOy3N."], ["created_at", "2019-12-06 01:51:52.273304"], ["updated_at", "2019-12-06 01:51:52.273304"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.276069"], ["updated_at", "2019-12-06 01:51:52.276069"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 830], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 951], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 951], ["room_id", 830], ["created_at", "2019-12-06 01:51:52.279829"], ["updated_at", "2019-12-06 01:51:52.279829"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 830], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 951], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 951], ["room_id", 830], ["created_at", "2019-12-06 01:51:52.283669"], ["updated_at", "2019-12-06 01:51:52.283669"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.285996"], ["last_sign_in_at", "2019-12-06 01:51:52.285996"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.286517"], ["id", 951]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 830], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 951], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 951], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9TzwcDUSX6.8Mjc689rbJ.domzYYxBGibgtAnsYxXQ2S0L5oFwyUy"], ["created_at", "2019-12-06 01:51:52.301258"], ["updated_at", "2019-12-06 01:51:52.301258"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.303690"], ["updated_at", "2019-12-06 01:51:52.303690"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 831], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 952], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 952], ["room_id", 831], ["created_at", "2019-12-06 01:51:52.308213"], ["updated_at", "2019-12-06 01:51:52.308213"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 831], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 952], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 952], ["room_id", 831], ["created_at", "2019-12-06 01:51:52.312208"], ["updated_at", "2019-12-06 01:51:52.312208"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.314569"], ["last_sign_in_at", "2019-12-06 01:51:52.314569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.315094"], ["id", 952]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wEuwZaUZUEaT5VdoRIcJh.kZuqxWZrPD40JURHMy2LSTzrYh0ZF/e"], ["created_at", "2019-12-06 01:51:52.326914"], ["updated_at", "2019-12-06 01:51:52.326914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.329168"], ["updated_at", "2019-12-06 01:51:52.329168"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 832], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 953], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 953], ["room_id", 832], ["created_at", "2019-12-06 01:51:52.332925"], ["updated_at", "2019-12-06 01:51:52.332925"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 832], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 953], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 953], ["room_id", 832], ["created_at", "2019-12-06 01:51:52.337093"], ["updated_at", "2019-12-06 01:51:52.337093"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.339538"], ["last_sign_in_at", "2019-12-06 01:51:52.339538"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.340075"], ["id", 953]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ueqZzNQSI53Gn2yKqewHpOr5HFcMkW2cGeQ5.zBz1113TFP9orMa."], ["created_at", "2019-12-06 01:51:52.354533"], ["updated_at", "2019-12-06 01:51:52.354533"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.356877"], ["last_sign_in_at", "2019-12-06 01:51:52.356877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.357390"], ["id", 954]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 65ms (Views: 48.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cGyjI4m1HX7d2QIQUjEdf.uDR41ahTip9EAsUGnv2A13hkfk9y3se"], ["created_at", "2019-12-06 01:51:52.434501"], ["updated_at", "2019-12-06 01:51:52.434501"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.437174"], ["last_sign_in_at", "2019-12-06 01:51:52.437174"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.437671"], ["id", 955]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.wVtgOGJuPpwY9XgR5I3M.KyZx.m.6UL5Hpl3FiDyrikTSIwydfqy"], ["created_at", "2019-12-06 01:51:52.449833"], ["updated_at", "2019-12-06 01:51:52.449833"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.452497"], ["last_sign_in_at", "2019-12-06 01:51:52.452497"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.452995"], ["id", 956]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 21ms (Views: 5.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P4PqDPEw3KBbQvGwQ5CJe.b4bu9mYFy.Y1ZNZ9fPu9xPBcOi0n76m"], ["created_at", "2019-12-06 01:51:52.483728"], ["updated_at", "2019-12-06 01:51:52.483728"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.486455"], ["last_sign_in_at", "2019-12-06 01:51:52.486455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.486952"], ["id", 957]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Z.WKcevp0RKFDkqVgLFl7.VVXO37A3RRwHwgkU0/CUxCVGpAbJK1y"], ["created_at", "2019-12-06 01:51:52.512559"], ["updated_at", "2019-12-06 01:51:52.512559"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.514845"], ["updated_at", "2019-12-06 01:51:52.514845"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/833” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.517256"], ["last_sign_in_at", "2019-12-06 01:51:52.517256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.517767"], ["id", 958]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"833"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 833], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 19ms (Views: 2.9ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rVlaMUhMPG0XnA5lg273IeTuvnUq33H5Z3hSVQJIPAukw46orfPjm"], ["created_at", "2019-12-06 01:51:52.545710"], ["updated_at", "2019-12-06 01:51:52.545710"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.547994"], ["updated_at", "2019-12-06 01:51:52.547994"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/834” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.550074"], ["last_sign_in_at", "2019-12-06 01:51:52.550074"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.550818"], ["id", 959]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"834"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 834], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.560928"], ["updated_at", "2019-12-06 01:51:52.560928"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/835” for 127.0.0.1 at 2019-12-05 22:51:52 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"835"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NHvVz1eRb0ppx8ec5HJhHOLMXzb8oiTOtC9p9UycyZxfdjGOStGyu"], ["created_at", "2019-12-06 01:51:52.570980"], ["updated_at", "2019-12-06 01:51:52.570980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.573376"], ["updated_at", "2019-12-06 01:51:52.573376"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/836/edit” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.575716"], ["last_sign_in_at", "2019-12-06 01:51:52.575716"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.576396"], ["id", 960]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"836"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 836], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 21ms (Views: 4.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Qr3NTvnW96wW/biSaYNzwOQj.SKI3TvZqhBVVqcoxuaouWwVHupqO"], ["created_at", "2019-12-06 01:51:52.605652"], ["updated_at", "2019-12-06 01:51:52.605652"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.608167"], ["updated_at", "2019-12-06 01:51:52.608167"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/837/edit” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.610469"], ["last_sign_in_at", "2019-12-06 01:51:52.610469"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.611255"], ["id", 961]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"837"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 837], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.622224"], ["updated_at", "2019-12-06 01:51:52.622224"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/838” for 127.0.0.1 at 2019-12-05 22:51:52 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"838"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6Fzvk5Zde7aRs6486Jy25ORdhfShJ6eCCr.cg80sOPPI6nJD0uXTe"], ["created_at", "2019-12-06 01:51:52.633843"], ["updated_at", "2019-12-06 01:51:52.633843"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.636610"], ["last_sign_in_at", "2019-12-06 01:51:52.636610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.637344"], ["id", 962]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.640495"], ["updated_at", "2019-12-06 01:51:52.640495"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kAQ06t0nkkDrowECQg909ucipS/fRabKR5flsLloF7QmdgA21Qugy"], ["created_at", "2019-12-06 01:51:52.649043"], ["updated_at", "2019-12-06 01:51:52.649043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.652076"], ["last_sign_in_at", "2019-12-06 01:51:52.652076"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.652536"], ["id", 963]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.655768"], ["updated_at", "2019-12-06 01:51:52.655768"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ychL9qYf8n.2k11QO8uiJODQ6LcM.qzQM1xhFIyLZdneXtdj6EFBq"], ["created_at", "2019-12-06 01:51:52.664455"], ["updated_at", "2019-12-06 01:51:52.664455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.667211"], ["last_sign_in_at", "2019-12-06 01:51:52.667211"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.667677"], ["id", 964]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mmwCgQfstfwgw9hL0Bpr8.bHBooz4yLBzx3vrMt8GtHgkUyhBuZOO"], ["created_at", "2019-12-06 01:51:52.686811"], ["updated_at", "2019-12-06 01:51:52.686811"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.689182"], ["last_sign_in_at", "2019-12-06 01:51:52.689182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.689670"], ["id", 965]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6MC68skgtcG6M.X0sqtLzO5mwCOtU8Ho2gE5cdbyfQVObhOpJXqUC"], ["created_at", "2019-12-06 01:51:52.699924"], ["updated_at", "2019-12-06 01:51:52.699924"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.702194"], ["last_sign_in_at", "2019-12-06 01:51:52.702194"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.702658"], ["id", 966]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MwQi/6LBCALaGr7H92ri7eGWatCGyQs/Lxn1V321RCJLE.dia4NFa"], ["created_at", "2019-12-06 01:51:52.712057"], ["updated_at", "2019-12-06 01:51:52.712057"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.714145"], ["updated_at", "2019-12-06 01:51:52.714145"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/841” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.716172"], ["last_sign_in_at", "2019-12-06 01:51:52.716172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.716674"], ["id", 967]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"841"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 841], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:51:52.720047"], ["id", 841]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/841 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U7PkTIQViY9lhO2w/qwg0O.UzYRd62W9/l9yr33mDcibcTTEsrbme"], ["created_at", "2019-12-06 01:51:52.727703"], ["updated_at", "2019-12-06 01:51:52.727703"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.729769"], ["updated_at", "2019-12-06 01:51:52.729769"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/842” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.731779"], ["last_sign_in_at", "2019-12-06 01:51:52.731779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.732285"], ["id", 968]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"842"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 842], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:51:52.735638"], ["id", 842]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/842 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2ajLQahcso1QHryZmAoHTOdNgD/z0BW.H/UVGFgYyJRNQewreb1Bq"], ["created_at", "2019-12-06 01:51:52.744237"], ["updated_at", "2019-12-06 01:51:52.744237"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.746314"], ["updated_at", "2019-12-06 01:51:52.746314"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/843” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.748333"], ["last_sign_in_at", "2019-12-06 01:51:52.748333"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.748818"], ["id", 969]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"843"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 843], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IiGZ4W06OI172GIg63S9SuHDz./nk7bEHlUMfHJvC0Sk6gw/rX7ky"], ["created_at", "2019-12-06 01:51:52.762677"], ["updated_at", "2019-12-06 01:51:52.762677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.764851"], ["updated_at", "2019-12-06 01:51:52.764851"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/844” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.767062"], ["last_sign_in_at", "2019-12-06 01:51:52.767062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.767554"], ["id", 970]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"844"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 844], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JprtIoxzFkDdImYBa9xyFeA5YPMSDpbUrt7YojTHQl0CHQtONnA82"], ["created_at", "2019-12-06 01:51:52.781568"], ["updated_at", "2019-12-06 01:51:52.781568"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.784094"], ["last_sign_in_at", "2019-12-06 01:51:52.784094"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.784599"], ["id", 971]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jgg4fkeyU4Fl.efcyNFgAu2K7FaB9.10woiDrl4jZfwBEqITHKdW2"], ["created_at", "2019-12-06 01:51:52.794766"], ["updated_at", "2019-12-06 01:51:52.794766"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.796912"], ["updated_at", "2019-12-06 01:51:52.796912"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/845” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.798758"], ["last_sign_in_at", "2019-12-06 01:51:52.798758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.799264"], ["id", 972]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"845"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 845], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 845]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pmrz1r8VXyUOoF6Bq3UhDulxd2owluUz2coTIjVB/qq6UgdwL.ZfS"], ["created_at", "2019-12-06 01:51:52.810793"], ["updated_at", "2019-12-06 01:51:52.810793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.812982"], ["updated_at", "2019-12-06 01:51:52.812982"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/846” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.814807"], ["last_sign_in_at", "2019-12-06 01:51:52.814807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.815285"], ["id", 973]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"846"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 846], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 846]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dmjG9uyJUF57oWB7OGnrPOTnLXvZdGkRu.adZ3tfxi248mIxzy0FO"], ["created_at", "2019-12-06 01:51:52.827750"], ["updated_at", "2019-12-06 01:51:52.827750"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.829947"], ["updated_at", "2019-12-06 01:51:52.829947"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/847” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.831784"], ["last_sign_in_at", "2019-12-06 01:51:52.831784"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.832284"], ["id", 974]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"847"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ugdgrPVMS6uIxAIUZRUPL.BvPBr/PYKO5HbpyUGdWo8o3IDK/IQ16"], ["created_at", "2019-12-06 01:51:52.841694"], ["updated_at", "2019-12-06 01:51:52.841694"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:51:52.843999"], ["updated_at", "2019-12-06 01:51:52.843999"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/848” for 127.0.0.1 at 2019-12-05 22:51:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:51:52.845863"], ["last_sign_in_at", "2019-12-06 01:51:52.845863"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:51:52.846370"], ["id", 975]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"848"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jaH3b0TG2GJkCgtQ9yYRSORjQx0x1xrOhx02gmbievL5O1YcA3jxi"], ["created_at", "2019-12-06 01:53:31.305708"], ["updated_at", "2019-12-06 01:53:31.305708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:31.314731"], ["updated_at", "2019-12-06 01:53:31.314731"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"849"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 849], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '849')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 150ms (Views: 106.9ms | ActiveRecord: 2.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qS..g.XE0.b.OersnyxyZe/.9nfgRmdZG8cuJFsbTzE1NhgL5bqa2"], ["created_at", "2019-12-06 01:53:31.475468"], ["updated_at", "2019-12-06 01:53:31.475468"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:31.478032"], ["updated_at", "2019-12-06 01:53:31.478032"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 850], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 977], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 977], ["room_id", 850], ["created_at", "2019-12-06 01:53:31.513447"], ["updated_at", "2019-12-06 01:53:31.513447"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VVwp47ZFbYaG2gynpriNSeSsLA9g20nFfISCL1byUwwvXf9yiToX2"], ["created_at", "2019-12-06 01:53:31.520967"], ["updated_at", "2019-12-06 01:53:31.520967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:31.523195"], ["updated_at", "2019-12-06 01:53:31.523195"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 851], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 978], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 978], ["room_id", 851], ["created_at", "2019-12-06 01:53:31.527889"], ["updated_at", "2019-12-06 01:53:31.527889"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GPp1Ql0/ndja34Amn9JxmOUSsntPTRwU9oSyYcY8nTj3YfXMwwCOO"], ["created_at", "2019-12-06 01:53:31.535807"], ["updated_at", "2019-12-06 01:53:31.535807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:31.537970"], ["updated_at", "2019-12-06 01:53:31.537970"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 852], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 979], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 979], ["room_id", 852], ["created_at", "2019-12-06 01:53:31.542506"], ["updated_at", "2019-12-06 01:53:31.542506"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HlxAdM7u6a4oRdgsvJebw.1Vw1pvAW0UBcsEB/RepbXMws7.teI8i"], ["created_at", "2019-12-06 01:53:31.550310"], ["updated_at", "2019-12-06 01:53:31.550310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:31.552495"], ["updated_at", "2019-12-06 01:53:31.552495"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 853], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 980], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 980], ["room_id", 853], ["created_at", "2019-12-06 01:53:31.556791"], ["updated_at", "2019-12-06 01:53:31.556791"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 103ms (Views: 73.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JyV7PetTVWWOXqMu/3WT6ezk6yAZKjtiNS3Y5X/9dx7uoNw.t1eFS"], ["created_at", "2019-12-06 01:53:32.110061"], ["updated_at", "2019-12-06 01:53:32.110061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.112341"], ["updated_at", "2019-12-06 01:53:32.112341"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.128188"], ["last_sign_in_at", "2019-12-06 01:53:32.128188"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.128867"], ["id", 981]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"854"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 854], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 981], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 981], ["room_id", 854], ["created_at", "2019-12-06 01:53:32.145349"], ["updated_at", "2019-12-06 01:53:32.145349"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 854], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$v9AspYLFaCBr4LA5lXWzhOJ/8gPOH76KP6OnEdka27O0.SmD3uuRa"], ["created_at", "2019-12-06 01:53:32.155342"], ["updated_at", "2019-12-06 01:53:32.155342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.157741"], ["updated_at", "2019-12-06 01:53:32.157741"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.160116"], ["last_sign_in_at", "2019-12-06 01:53:32.160116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.160787"], ["id", 982]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"855"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 855], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 982], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 982], ["room_id", 855], ["created_at", "2019-12-06 01:53:32.167098"], ["updated_at", "2019-12-06 01:53:32.167098"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$R6r9rakXiV6LJyh/pdgNj.aY251aITFuux78X67ZQpJ.417.a5V.K"], ["created_at", "2019-12-06 01:53:32.175098"], ["updated_at", "2019-12-06 01:53:32.175098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.177317"], ["updated_at", "2019-12-06 01:53:32.177317"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.180560"], ["last_sign_in_at", "2019-12-06 01:53:32.180560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.181342"], ["id", 983]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"856"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 856], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hJFMRgUBdJif3k9PEgE2bObDS2uOdfvJEPLipr4xjf.5WFnNpD6z."], ["created_at", "2019-12-06 01:53:32.190524"], ["updated_at", "2019-12-06 01:53:32.190524"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.192788"], ["updated_at", "2019-12-06 01:53:32.192788"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.195445"], ["last_sign_in_at", "2019-12-06 01:53:32.195445"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.195988"], ["id", 984]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"857"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZD0ipKR9bX4QRVJeWVtzwOzU2i9PQ7lHgmkODh7b/R6Oh8wU0kW1."], ["created_at", "2019-12-06 01:53:32.205978"], ["updated_at", "2019-12-06 01:53:32.205978"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.208119"], ["updated_at", "2019-12-06 01:53:32.208119"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 858], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 985], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 985], ["room_id", 858], ["created_at", "2019-12-06 01:53:32.212253"], ["updated_at", "2019-12-06 01:53:32.212253"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/858” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.214792"], ["last_sign_in_at", "2019-12-06 01:53:32.214792"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.215304"], ["id", 985]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"858"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 858], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '858')
Rendered appointments/show.html.erb within layouts/application (24.9ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 346ms (Views: 329.7ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ASna4hqMoK31x7fmTb/.wemTCIplAjA3iuKrgkTRk43hKXpbnY1D6"], ["created_at", "2019-12-06 01:53:32.571326"], ["updated_at", "2019-12-06 01:53:32.571326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.573540"], ["updated_at", "2019-12-06 01:53:32.573540"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 859], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 986], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 986], ["room_id", 859], ["created_at", "2019-12-06 01:53:32.577461"], ["updated_at", "2019-12-06 01:53:32.577461"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 859], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 986], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 986], ["room_id", 859], ["created_at", "2019-12-06 01:53:32.581388"], ["updated_at", "2019-12-06 01:53:32.581388"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.583724"], ["last_sign_in_at", "2019-12-06 01:53:32.583724"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.584251"], ["id", 986]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 986]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$44ZWe7thvQ4CQMVsIhrJzulordLU30lev1aB2Q6CmTpc7PsNNa50G"], ["created_at", "2019-12-06 01:53:32.627765"], ["updated_at", "2019-12-06 01:53:32.627765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.629875"], ["updated_at", "2019-12-06 01:53:32.629875"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 860], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 987], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 987], ["room_id", 860], ["created_at", "2019-12-06 01:53:32.633469"], ["updated_at", "2019-12-06 01:53:32.633469"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 860], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 987], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 987], ["room_id", 860], ["created_at", "2019-12-06 01:53:32.636950"], ["updated_at", "2019-12-06 01:53:32.636950"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.638957"], ["last_sign_in_at", "2019-12-06 01:53:32.638957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.639393"], ["id", 987]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 987]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wZxmp7bIymuaN1flP8ciqeZBYp1vA.9n3BdgY.r0ehbl2fLot87Zq"], ["created_at", "2019-12-06 01:53:32.665432"], ["updated_at", "2019-12-06 01:53:32.665432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.667605"], ["updated_at", "2019-12-06 01:53:32.667605"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 861], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 988], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 988], ["room_id", 861], ["created_at", "2019-12-06 01:53:32.671172"], ["updated_at", "2019-12-06 01:53:32.671172"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/429” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.673481"], ["last_sign_in_at", "2019-12-06 01:53:32.673481"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.674020"], ["id", 988]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"429"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 429], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 429]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xC6AvHK0W4e7JIdPdLFxou4b/QmGAj8J50fqHeOMuAAUh8/3bWLGy"], ["created_at", "2019-12-06 01:53:32.688359"], ["updated_at", "2019-12-06 01:53:32.688359"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.690689"], ["last_sign_in_at", "2019-12-06 01:53:32.690689"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.691261"], ["id", 989]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 34ms (Views: 18.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V3IIOu.m/DBVEZSWFBpWsuLnLrouamZbPgvGt5OXAeewedWcTrIES"], ["created_at", "2019-12-06 01:53:32.735592"], ["updated_at", "2019-12-06 01:53:32.735592"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.737816"], ["updated_at", "2019-12-06 01:53:32.737816"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 862], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 990], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 990], ["room_id", 862], ["created_at", "2019-12-06 01:53:32.741645"], ["updated_at", "2019-12-06 01:53:32.741645"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 862], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 990], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 990], ["room_id", 862], ["created_at", "2019-12-06 01:53:32.745841"], ["updated_at", "2019-12-06 01:53:32.745841"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.748146"], ["last_sign_in_at", "2019-12-06 01:53:32.748146"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.748687"], ["id", 990]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 862], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 990], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 990], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AiYs5kLfTtY5Y7yYyWNz6udxSO3yLkKVcr7i1bmkw11x/j/.3hsGS"], ["created_at", "2019-12-06 01:53:32.762580"], ["updated_at", "2019-12-06 01:53:32.762580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.764836"], ["updated_at", "2019-12-06 01:53:32.764836"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 863], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 991], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 991], ["room_id", 863], ["created_at", "2019-12-06 01:53:32.768656"], ["updated_at", "2019-12-06 01:53:32.768656"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 863], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 991], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 991], ["room_id", 863], ["created_at", "2019-12-06 01:53:32.772575"], ["updated_at", "2019-12-06 01:53:32.772575"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.774879"], ["last_sign_in_at", "2019-12-06 01:53:32.774879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.775433"], ["id", 991]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 863], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 991], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 991], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2fYhVF8Um0wiMM4SZsLZceB4K4gJ/h9pEloZgx8xWzVhJ8iIsfP.m"], ["created_at", "2019-12-06 01:53:32.790242"], ["updated_at", "2019-12-06 01:53:32.790242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.792559"], ["updated_at", "2019-12-06 01:53:32.792559"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 864], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 992], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 992], ["room_id", 864], ["created_at", "2019-12-06 01:53:32.797812"], ["updated_at", "2019-12-06 01:53:32.797812"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 864], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 992], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 992], ["room_id", 864], ["created_at", "2019-12-06 01:53:32.801835"], ["updated_at", "2019-12-06 01:53:32.801835"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.804144"], ["last_sign_in_at", "2019-12-06 01:53:32.804144"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.804666"], ["id", 992]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HD1W5TlBnHxv6QKtbKZsYuVJKbLAsG5zb5m6Ykje.FzVHeMfjKqWi"], ["created_at", "2019-12-06 01:53:32.816264"], ["updated_at", "2019-12-06 01:53:32.816264"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:32.818486"], ["updated_at", "2019-12-06 01:53:32.818486"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 865], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 993], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 993], ["room_id", 865], ["created_at", "2019-12-06 01:53:32.822351"], ["updated_at", "2019-12-06 01:53:32.822351"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 865], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 993], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 993], ["room_id", 865], ["created_at", "2019-12-06 01:53:32.826310"], ["updated_at", "2019-12-06 01:53:32.826310"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.829243"], ["last_sign_in_at", "2019-12-06 01:53:32.829243"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.829968"], ["id", 993]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O04iSaDOjYLq9JxqjBvOIeJEVh7FyuNQBo6PL8bJ2KMpgslSxhNZO"], ["created_at", "2019-12-06 01:53:32.843921"], ["updated_at", "2019-12-06 01:53:32.843921"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.846807"], ["last_sign_in_at", "2019-12-06 01:53:32.846807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.847388"], ["id", 994]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 63ms (Views: 47.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ks2Flaz/iIJ864IsYbIDS.uJd9XoVjcGVslJO7HCVaYLFtLNjlNM6"], ["created_at", "2019-12-06 01:53:32.922881"], ["updated_at", "2019-12-06 01:53:32.922881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.925861"], ["last_sign_in_at", "2019-12-06 01:53:32.925861"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.926436"], ["id", 995]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pQh8HEW/7tssRZ8zKZzfquxqiRRnYZIyQT3lwdzyqruz7CARnSctm"], ["created_at", "2019-12-06 01:53:32.939225"], ["updated_at", "2019-12-06 01:53:32.939225"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.941934"], ["last_sign_in_at", "2019-12-06 01:53:32.941934"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.942744"], ["id", 996]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eRS7ZFlKb5XB6tDNuvpypumLvALTD3BEir6hulpyNZg./dJ78WVTu"], ["created_at", "2019-12-06 01:53:32.973975"], ["updated_at", "2019-12-06 01:53:32.973975"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:32 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:32.976712"], ["last_sign_in_at", "2019-12-06 01:53:32.976712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:32.977315"], ["id", 997]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:32 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1jSrAGFdPIt.wrO.doFpr.c4hNDZj6rPpKqbHXoxgZeue0.IJIp1W"], ["created_at", "2019-12-06 01:53:33.004677"], ["updated_at", "2019-12-06 01:53:33.004677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.007283"], ["updated_at", "2019-12-06 01:53:33.007283"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/866” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.009981"], ["last_sign_in_at", "2019-12-06 01:53:33.009981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.010590"], ["id", 998]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"866"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 866], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 19ms (Views: 2.9ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qX8cxhrllZFLTx6LrcdV5eC1Gmp1FVufy7V5JqSPDZBfeONTRfNz6"], ["created_at", "2019-12-06 01:53:33.039117"], ["updated_at", "2019-12-06 01:53:33.039117"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.041424"], ["updated_at", "2019-12-06 01:53:33.041424"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/867” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.043375"], ["last_sign_in_at", "2019-12-06 01:53:33.043375"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.043916"], ["id", 999]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"867"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 867], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.054799"], ["updated_at", "2019-12-06 01:53:33.054799"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/868” for 127.0.0.1 at 2019-12-05 22:53:33 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"868"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2NdDpxqXWsxlDM7imO4fiONY6/.PAZt6eRdLr1qA3ZvVen7b5ua0W"], ["created_at", "2019-12-06 01:53:33.066240"], ["updated_at", "2019-12-06 01:53:33.066240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.068637"], ["updated_at", "2019-12-06 01:53:33.068637"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/869/edit” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.071045"], ["last_sign_in_at", "2019-12-06 01:53:33.071045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.071590"], ["id", 1000]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"869"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 869], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 21ms (Views: 4.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$moSIDGRYggibguglRN4FHem6lOv2Vo1ZpovCVyyG7Mpra4kqed/fC"], ["created_at", "2019-12-06 01:53:33.102366"], ["updated_at", "2019-12-06 01:53:33.102366"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.105420"], ["updated_at", "2019-12-06 01:53:33.105420"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/870/edit” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.107873"], ["last_sign_in_at", "2019-12-06 01:53:33.107873"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.108394"], ["id", 1001]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"870"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 870], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.4ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.120885"], ["updated_at", "2019-12-06 01:53:33.120885"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/871” for 127.0.0.1 at 2019-12-05 22:53:33 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"871"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dNR81ENAM7Pb3wopq/6RueO1z5xSeeC0lUBc/QyJBAbPj.PHNZCx."], ["created_at", "2019-12-06 01:53:33.133108"], ["updated_at", "2019-12-06 01:53:33.133108"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.136582"], ["last_sign_in_at", "2019-12-06 01:53:33.136582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.137152"], ["id", 1002]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.141000"], ["updated_at", "2019-12-06 01:53:33.141000"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.nqD6fhfwTNAoJSrjvXWFu9pRN8ppggZZSc45YZ9/lUKtANeZp9VO"], ["created_at", "2019-12-06 01:53:33.150686"], ["updated_at", "2019-12-06 01:53:33.150686"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.153556"], ["last_sign_in_at", "2019-12-06 01:53:33.153556"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.154063"], ["id", 1003]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.157912"], ["updated_at", "2019-12-06 01:53:33.157912"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rk/nlqQV7yVH83M6ZAkTKOm7X9vRxnoCDk1cRQFyCqjwgax3h3tSy"], ["created_at", "2019-12-06 01:53:33.168675"], ["updated_at", "2019-12-06 01:53:33.168675"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.172313"], ["last_sign_in_at", "2019-12-06 01:53:33.172313"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.172834"], ["id", 1004]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.YqdDvHrGYyZqQoY7J5DGOta06mPU3WNZfTMks/z97mdmtXl9rMZO"], ["created_at", "2019-12-06 01:53:33.185829"], ["updated_at", "2019-12-06 01:53:33.185829"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.197473"], ["last_sign_in_at", "2019-12-06 01:53:33.197473"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.198049"], ["id", 1005]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vOlaL2KggvgiQc7QGlXVvuQrvPO/GapYhC2k6wPzy.HC/ZGHsLyqa"], ["created_at", "2019-12-06 01:53:33.209406"], ["updated_at", "2019-12-06 01:53:33.209406"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.212507"], ["last_sign_in_at", "2019-12-06 01:53:33.212507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.213063"], ["id", 1006]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zjPnB9emTKpTgKItJFOQ6.msIHOk9KOaecSTvhIBcAYWyX8cg/8M."], ["created_at", "2019-12-06 01:53:33.223846"], ["updated_at", "2019-12-06 01:53:33.223846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.225982"], ["updated_at", "2019-12-06 01:53:33.225982"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/874” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.228507"], ["last_sign_in_at", "2019-12-06 01:53:33.228507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.229092"], ["id", 1007]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"874"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 874], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:53:33.232866"], ["id", 874]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/874 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3blM2M8v8S5OypVRfQk9quL6UktxxH5aDkdh5fF1c44k02InvvTnS"], ["created_at", "2019-12-06 01:53:33.240879"], ["updated_at", "2019-12-06 01:53:33.240879"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.243046"], ["updated_at", "2019-12-06 01:53:33.243046"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/875” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.245597"], ["last_sign_in_at", "2019-12-06 01:53:33.245597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.246148"], ["id", 1008]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"875"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 875], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:53:33.250258"], ["id", 875]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/875 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ONZQI.wZLZJUbgnP6bPgeuqlEFJ2HL/YPQzOfKtlCb1RGsWmZNQay"], ["created_at", "2019-12-06 01:53:33.258459"], ["updated_at", "2019-12-06 01:53:33.258459"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.260730"], ["updated_at", "2019-12-06 01:53:33.260730"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/876” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.263347"], ["last_sign_in_at", "2019-12-06 01:53:33.263347"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.263883"], ["id", 1009]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"876"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 876], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YX3OgTSXRozCKaWwm3iXIuP60qQ6ywbz27D2lHmEpMFBBaq3IpYZm"], ["created_at", "2019-12-06 01:53:33.279491"], ["updated_at", "2019-12-06 01:53:33.279491"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.282330"], ["updated_at", "2019-12-06 01:53:33.282330"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/877” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.285062"], ["last_sign_in_at", "2019-12-06 01:53:33.285062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.285610"], ["id", 1010]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"877"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 877], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MCXSkqMAu/Z404Jp84KwXeKZkHLIOxTY.ifiY/ilN1/eHwgRJ2vXW"], ["created_at", "2019-12-06 01:53:33.300242"], ["updated_at", "2019-12-06 01:53:33.300242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.302744"], ["last_sign_in_at", "2019-12-06 01:53:33.302744"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.303223"], ["id", 1011]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v9.MSXeYv5NW5Dsp6aCTNu1Y53YQojcM8z2EA6QK9ydrcRT3j13oy"], ["created_at", "2019-12-06 01:53:33.313902"], ["updated_at", "2019-12-06 01:53:33.313902"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.316170"], ["updated_at", "2019-12-06 01:53:33.316170"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/878” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.318010"], ["last_sign_in_at", "2019-12-06 01:53:33.318010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.318511"], ["id", 1012]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"878"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 878], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 878]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NtrScPcFFqAY6OTC781Jte9D2LuV6sua4Ynni6rh.tIm7o4M9i77O"], ["created_at", "2019-12-06 01:53:33.329675"], ["updated_at", "2019-12-06 01:53:33.329675"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.331858"], ["updated_at", "2019-12-06 01:53:33.331858"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/879” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.333677"], ["last_sign_in_at", "2019-12-06 01:53:33.333677"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.334149"], ["id", 1013]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"879"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 879], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 879]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MUlN.BaQdgHCnumfl3fBkufef9OMIRTP.bZY.Uzx7IorJ0Ly2wgqW"], ["created_at", "2019-12-06 01:53:33.345532"], ["updated_at", "2019-12-06 01:53:33.345532"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.347822"], ["updated_at", "2019-12-06 01:53:33.347822"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/880” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.349669"], ["last_sign_in_at", "2019-12-06 01:53:33.349669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.350154"], ["id", 1014]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"880"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ftaCajbPkth1sldNBMEI5.rBqHPFm15fBqNQbNDXDOSz5q22FGBKS"], ["created_at", "2019-12-06 01:53:33.358963"], ["updated_at", "2019-12-06 01:53:33.358963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:33.361810"], ["updated_at", "2019-12-06 01:53:33.361810"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/881” for 127.0.0.1 at 2019-12-05 22:53:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:33.363797"], ["last_sign_in_at", "2019-12-06 01:53:33.363797"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:33.364298"], ["id", 1015]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"881"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Mwa7CDLGWKO0tCxDYbJxle9DfNDSevsiqKw2dDjqB362TjAViMkUK"], ["created_at", "2019-12-06 01:53:57.072249"], ["updated_at", "2019-12-06 01:53:57.072249"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:57.081021"], ["updated_at", "2019-12-06 01:53:57.081021"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"882"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 882], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '882')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 152ms (Views: 108.8ms | ActiveRecord: 2.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xjohFVj99dlOALnnr2plzOWsyhKnUkq4UpJ0P6z0JGPCHCpAdQbW."], ["created_at", "2019-12-06 01:53:57.242563"], ["updated_at", "2019-12-06 01:53:57.242563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:57.244997"], ["updated_at", "2019-12-06 01:53:57.244997"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 883], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1017], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1017], ["room_id", 883], ["created_at", "2019-12-06 01:53:57.281448"], ["updated_at", "2019-12-06 01:53:57.281448"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"883"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 883], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '883')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mPcllr7ecYR6o.UetmLgne9W8dVE3GhNQufLIyR99PeiQlEDbuSKm"], ["created_at", "2019-12-06 01:53:57.443043"], ["updated_at", "2019-12-06 01:53:57.443043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:57.445388"], ["updated_at", "2019-12-06 01:53:57.445388"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 884], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1018], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1018], ["room_id", 884], ["created_at", "2019-12-06 01:53:57.449284"], ["updated_at", "2019-12-06 01:53:57.449284"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"884"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 884], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '884')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0KGzPuukf4KUL.G/jtEBleqJEh8kWhEzSmE8EAhG4RHeGMT14QYI."], ["created_at", "2019-12-06 01:53:57.468787"], ["updated_at", "2019-12-06 01:53:57.468787"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:57.471212"], ["updated_at", "2019-12-06 01:53:57.471212"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 885], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1019], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1019], ["room_id", 885], ["created_at", "2019-12-06 01:53:57.474962"], ["updated_at", "2019-12-06 01:53:57.474962"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"885"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 885], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '885')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$48rQpz9aNXF3tT/iP2dlXeEsbNePoLQCYnx0kqgPbqAJZEe0xnekq"], ["created_at", "2019-12-06 01:53:57.493758"], ["updated_at", "2019-12-06 01:53:57.493758"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:57.496528"], ["updated_at", "2019-12-06 01:53:57.496528"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 886], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1020], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1020], ["room_id", 886], ["created_at", "2019-12-06 01:53:57.500311"], ["updated_at", "2019-12-06 01:53:57.500311"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"886"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 886], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '886')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 102ms (Views: 71.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3jed4QtceXl5MkRTzBO4JOruwpoqWvo5Qv5XkFNgy/Y6JIOjTSyqm"], ["created_at", "2019-12-06 01:53:58.070933"], ["updated_at", "2019-12-06 01:53:58.070933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.073152"], ["updated_at", "2019-12-06 01:53:58.073152"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.088843"], ["last_sign_in_at", "2019-12-06 01:53:58.088843"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.089487"], ["id", 1021]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"887"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 887], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1021], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1021], ["room_id", 887], ["created_at", "2019-12-06 01:53:58.106325"], ["updated_at", "2019-12-06 01:53:58.106325"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 887], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Zsz7OUSgUddOQnW4AAJKAeHdfwLOW1.jXAV3b1Qn1WXi3E8DgWerO"], ["created_at", "2019-12-06 01:53:58.116284"], ["updated_at", "2019-12-06 01:53:58.116284"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.118682"], ["updated_at", "2019-12-06 01:53:58.118682"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.121234"], ["last_sign_in_at", "2019-12-06 01:53:58.121234"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.121775"], ["id", 1022]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"888"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 888], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1022], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1022], ["room_id", 888], ["created_at", "2019-12-06 01:53:58.126945"], ["updated_at", "2019-12-06 01:53:58.126945"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$18ttfNPih8eYZ53OklopiOaPWPjFsIEPVarQ9anR.U5xvckIz33XK"], ["created_at", "2019-12-06 01:53:58.136118"], ["updated_at", "2019-12-06 01:53:58.136118"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.138450"], ["updated_at", "2019-12-06 01:53:58.138450"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.140915"], ["last_sign_in_at", "2019-12-06 01:53:58.140915"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.141517"], ["id", 1023]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"889"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 889], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.9re5iRqH5WQJBBWGFE8qOZTA97bzBHAdBiP0Vo8E8XBEoKHlKFoy"], ["created_at", "2019-12-06 01:53:58.151568"], ["updated_at", "2019-12-06 01:53:58.151568"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.153721"], ["updated_at", "2019-12-06 01:53:58.153721"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.156007"], ["last_sign_in_at", "2019-12-06 01:53:58.156007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.156494"], ["id", 1024]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"890"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.kXA2UfC7qj2/CyCOv0dgu25jSgPxnOJZJ74SKFE6qlslI1dahqmi"], ["created_at", "2019-12-06 01:53:58.167351"], ["updated_at", "2019-12-06 01:53:58.167351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.169483"], ["updated_at", "2019-12-06 01:53:58.169483"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 891], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1025], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1025], ["room_id", 891], ["created_at", "2019-12-06 01:53:58.173376"], ["updated_at", "2019-12-06 01:53:58.173376"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/891” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.176323"], ["last_sign_in_at", "2019-12-06 01:53:58.176323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.176909"], ["id", 1025]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"891"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 891], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '891')
Rendered appointments/show.html.erb within layouts/application (20.9ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 386ms (Views: 369.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NqA0JMdkCScC4Fcii4B4K.qsByvAq6anFI1.j04Q3nAQ2DcARYAsO"], ["created_at", "2019-12-06 01:53:58.574279"], ["updated_at", "2019-12-06 01:53:58.574279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.576405"], ["updated_at", "2019-12-06 01:53:58.576405"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 892], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1026], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1026], ["room_id", 892], ["created_at", "2019-12-06 01:53:58.580674"], ["updated_at", "2019-12-06 01:53:58.580674"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 892], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1026], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1026], ["room_id", 892], ["created_at", "2019-12-06 01:53:58.584867"], ["updated_at", "2019-12-06 01:53:58.584867"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.587117"], ["last_sign_in_at", "2019-12-06 01:53:58.587117"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.587659"], ["id", 1026]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1026]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$F6N3Srvqe6yeOhypPwms0.gZVGC2t9dvNUZ5TelNX/mWg87WTfMey"], ["created_at", "2019-12-06 01:53:58.630857"], ["updated_at", "2019-12-06 01:53:58.630857"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.632908"], ["updated_at", "2019-12-06 01:53:58.632908"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 893], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1027], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1027], ["room_id", 893], ["created_at", "2019-12-06 01:53:58.636272"], ["updated_at", "2019-12-06 01:53:58.636272"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 893], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1027], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1027], ["room_id", 893], ["created_at", "2019-12-06 01:53:58.639642"], ["updated_at", "2019-12-06 01:53:58.639642"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.641741"], ["last_sign_in_at", "2019-12-06 01:53:58.641741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.642238"], ["id", 1027]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1027]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$a0dTCHDFVC9a3BWNi1axs.Imo5gYyFvzTrjc55eJpDpj7aSjferLe"], ["created_at", "2019-12-06 01:53:58.655065"], ["updated_at", "2019-12-06 01:53:58.655065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.657311"], ["updated_at", "2019-12-06 01:53:58.657311"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 894], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1028], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1028], ["room_id", 894], ["created_at", "2019-12-06 01:53:58.661488"], ["updated_at", "2019-12-06 01:53:58.661488"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/449” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.664240"], ["last_sign_in_at", "2019-12-06 01:53:58.664240"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.664739"], ["id", 1028]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"449"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 449], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 449]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D4N6QIDQ4OsQ7Z.YmFYp/O5XGHOaZAYBbL4XRuJVk0r8vZLVINzL2"], ["created_at", "2019-12-06 01:53:58.679337"], ["updated_at", "2019-12-06 01:53:58.679337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.681838"], ["last_sign_in_at", "2019-12-06 01:53:58.681838"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.682411"], ["id", 1029]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NhnBDJph4z/z8ViFD4fdEOSV4F.hV3MPHN5bQufHMHdPNN9XZWgv."], ["created_at", "2019-12-06 01:53:58.727086"], ["updated_at", "2019-12-06 01:53:58.727086"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.729684"], ["updated_at", "2019-12-06 01:53:58.729684"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 895], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1030], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1030], ["room_id", 895], ["created_at", "2019-12-06 01:53:58.733562"], ["updated_at", "2019-12-06 01:53:58.733562"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 895], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1030], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1030], ["room_id", 895], ["created_at", "2019-12-06 01:53:58.737376"], ["updated_at", "2019-12-06 01:53:58.737376"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.739622"], ["last_sign_in_at", "2019-12-06 01:53:58.739622"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.740185"], ["id", 1030]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 895], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1030], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1030], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fSfty.RosFOjXNpF/P3Bvu.gPfByo/6zZOFOkEOjeL9gatlnCto0."], ["created_at", "2019-12-06 01:53:58.754025"], ["updated_at", "2019-12-06 01:53:58.754025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.756284"], ["updated_at", "2019-12-06 01:53:58.756284"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 896], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1031], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1031], ["room_id", 896], ["created_at", "2019-12-06 01:53:58.760159"], ["updated_at", "2019-12-06 01:53:58.760159"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 896], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1031], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1031], ["room_id", 896], ["created_at", "2019-12-06 01:53:58.764555"], ["updated_at", "2019-12-06 01:53:58.764555"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.766808"], ["last_sign_in_at", "2019-12-06 01:53:58.766808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.767312"], ["id", 1031]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 896], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1031], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1031], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y7WKw4Qwub1h25aLeAylMOPiSrFF9HjB8ccPGlcDV/nH9i33ORZQi"], ["created_at", "2019-12-06 01:53:58.782757"], ["updated_at", "2019-12-06 01:53:58.782757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.784896"], ["updated_at", "2019-12-06 01:53:58.784896"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 897], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1032], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1032], ["room_id", 897], ["created_at", "2019-12-06 01:53:58.788799"], ["updated_at", "2019-12-06 01:53:58.788799"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 897], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1032], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1032], ["room_id", 897], ["created_at", "2019-12-06 01:53:58.792593"], ["updated_at", "2019-12-06 01:53:58.792593"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.795107"], ["last_sign_in_at", "2019-12-06 01:53:58.795107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.795815"], ["id", 1032]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Hgq7Ji4E0S0aYRsgWx68DOpnT9tPIFTir6raDUH2QEKgE1AHk0CbG"], ["created_at", "2019-12-06 01:53:58.806819"], ["updated_at", "2019-12-06 01:53:58.806819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.809004"], ["updated_at", "2019-12-06 01:53:58.809004"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 898], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1033], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1033], ["room_id", 898], ["created_at", "2019-12-06 01:53:58.813514"], ["updated_at", "2019-12-06 01:53:58.813514"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 898], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1033], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1033], ["room_id", 898], ["created_at", "2019-12-06 01:53:58.817615"], ["updated_at", "2019-12-06 01:53:58.817615"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.820004"], ["last_sign_in_at", "2019-12-06 01:53:58.820004"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.820533"], ["id", 1033]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PoDWZdhtRTKA7eJk534RUurw.rYWj8Jda4yVrzVnhYX5R8mUf2Dxe"], ["created_at", "2019-12-06 01:53:58.834151"], ["updated_at", "2019-12-06 01:53:58.834151"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.836775"], ["last_sign_in_at", "2019-12-06 01:53:58.836775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.837476"], ["id", 1034]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 64ms (Views: 47.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3D9nov9c13iO4Y2x.ON9re93dHHMpo/9ADvGLMo2I04PcItbTQJXy"], ["created_at", "2019-12-06 01:53:58.912904"], ["updated_at", "2019-12-06 01:53:58.912904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.915320"], ["last_sign_in_at", "2019-12-06 01:53:58.915320"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.915806"], ["id", 1035]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p5wMHamVR4XtRKjA1yzV4.1toenphPlpJDQWbxv4VyRF3kiJ1rIx2"], ["created_at", "2019-12-06 01:53:58.926355"], ["updated_at", "2019-12-06 01:53:58.926355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.928924"], ["last_sign_in_at", "2019-12-06 01:53:58.928924"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.929506"], ["id", 1036]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kOn1K1By1Mei039o5ULOBODO409tAwB7dl5E8Bi5hC4fY.2ZQxrnm"], ["created_at", "2019-12-06 01:53:58.956448"], ["updated_at", "2019-12-06 01:53:58.956448"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.958680"], ["last_sign_in_at", "2019-12-06 01:53:58.958680"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.959151"], ["id", 1037]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.4ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:53:58 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iQtfaK.Tp8gXn.LsDnpc9.gyKY9wk7xMo.50hsVUv2oA.nEnf2gv."], ["created_at", "2019-12-06 01:53:58.977773"], ["updated_at", "2019-12-06 01:53:58.977773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:58.980370"], ["updated_at", "2019-12-06 01:53:58.980370"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/899” for 127.0.0.1 at 2019-12-05 22:53:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:58.982434"], ["last_sign_in_at", "2019-12-06 01:53:58.982434"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:58.982911"], ["id", 1038]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"899"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 899], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 18ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qJpEN/FMWoUQc3JEqdSYiOUhHL2vek4adRBCP8I29Q/WrDwybPVGO"], ["created_at", "2019-12-06 01:53:59.008919"], ["updated_at", "2019-12-06 01:53:59.008919"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.010942"], ["updated_at", "2019-12-06 01:53:59.010942"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/900” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.013167"], ["last_sign_in_at", "2019-12-06 01:53:59.013167"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.013654"], ["id", 1039]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"900"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 900], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.022810"], ["updated_at", "2019-12-06 01:53:59.022810"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/901” for 127.0.0.1 at 2019-12-05 22:53:59 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"901"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9zSUT/4jX/15LhQL4c1MTekmhOZ6s7OlaKOoWJGqw2tIf/Ckt3dx6"], ["created_at", "2019-12-06 01:53:59.032907"], ["updated_at", "2019-12-06 01:53:59.032907"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.035100"], ["updated_at", "2019-12-06 01:53:59.035100"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/902/edit” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.037054"], ["last_sign_in_at", "2019-12-06 01:53:59.037054"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.037521"], ["id", 1040]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"902"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 902], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v8c2tyVTK9.oB4RyXsKJtO7VNO3gT.W7sZ0mEp3bflYw4bNIKzDOa"], ["created_at", "2019-12-06 01:53:59.064846"], ["updated_at", "2019-12-06 01:53:59.064846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.067098"], ["updated_at", "2019-12-06 01:53:59.067098"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/903/edit” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.069246"], ["last_sign_in_at", "2019-12-06 01:53:59.069246"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.077093"], ["id", 1041]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"903"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 903], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.087967"], ["updated_at", "2019-12-06 01:53:59.087967"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/904” for 127.0.0.1 at 2019-12-05 22:53:59 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"904"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oADfQMoZT2A1srjSDKfWGearMsRPQ38xo911nqYLogcmjc3twGGkC"], ["created_at", "2019-12-06 01:53:59.098780"], ["updated_at", "2019-12-06 01:53:59.098780"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.101202"], ["last_sign_in_at", "2019-12-06 01:53:59.101202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.101669"], ["id", 1042]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.104813"], ["updated_at", "2019-12-06 01:53:59.104813"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HWMpO7Grg6ULWyiiNv9X6uN9V6QJNA9bssM9rBw2GgzMJB9Y2oGL6"], ["created_at", "2019-12-06 01:53:59.112471"], ["updated_at", "2019-12-06 01:53:59.112471"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.115468"], ["last_sign_in_at", "2019-12-06 01:53:59.115468"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.116023"], ["id", 1043]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.119131"], ["updated_at", "2019-12-06 01:53:59.119131"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yvBm.z7WFTkL2xMwvSehleAfpzzVBXLSf3lArywupUt/QAOYjObAC"], ["created_at", "2019-12-06 01:53:59.127392"], ["updated_at", "2019-12-06 01:53:59.127392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.130350"], ["last_sign_in_at", "2019-12-06 01:53:59.130350"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.130962"], ["id", 1044]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1B9dHBLnk3ETfjIkBm/m0Ogas6xWIOtvVeLjTiv5LISrGpXZS8aaC"], ["created_at", "2019-12-06 01:53:59.141727"], ["updated_at", "2019-12-06 01:53:59.141727"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.144324"], ["last_sign_in_at", "2019-12-06 01:53:59.144324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.145094"], ["id", 1045]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jNhzd0EH3RcOSYizd46R.um3aAJw1gGShdjgpNqIiWmVMWqHny5Se"], ["created_at", "2019-12-06 01:53:59.157280"], ["updated_at", "2019-12-06 01:53:59.157280"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.160108"], ["last_sign_in_at", "2019-12-06 01:53:59.160108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.160727"], ["id", 1046]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.Umm/XbdkeZcV2.10DVifeQXcMnut.mxES4ClYbB9nJlGnQwGb5.m"], ["created_at", "2019-12-06 01:53:59.172807"], ["updated_at", "2019-12-06 01:53:59.172807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.175209"], ["updated_at", "2019-12-06 01:53:59.175209"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/907” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.177608"], ["last_sign_in_at", "2019-12-06 01:53:59.177608"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.178310"], ["id", 1047]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"907"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 907], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:53:59.183316"], ["id", 907]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/907 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SvlPTxHtd/6bGTahmvg4QOnmszA24u3A5iVP3LPLWdR/zC91rpUB."], ["created_at", "2019-12-06 01:53:59.191844"], ["updated_at", "2019-12-06 01:53:59.191844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.194345"], ["updated_at", "2019-12-06 01:53:59.194345"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/908” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.197520"], ["last_sign_in_at", "2019-12-06 01:53:59.197520"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.198269"], ["id", 1048]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"908"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 908], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:53:59.202483"], ["id", 908]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/908 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RdbfRP8UCqXNGyr5id.x4eouL5/Ghzi.5ROYyLHkYM.ZajclCitCq"], ["created_at", "2019-12-06 01:53:59.210397"], ["updated_at", "2019-12-06 01:53:59.210397"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.212899"], ["updated_at", "2019-12-06 01:53:59.212899"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/909” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.215325"], ["last_sign_in_at", "2019-12-06 01:53:59.215325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.215828"], ["id", 1049]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"909"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 909], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J2R9sLdGrk81ApyFS6MIw.AQJDjP11qGvRzCtoqjraTeOFMHWAHt2"], ["created_at", "2019-12-06 01:53:59.229720"], ["updated_at", "2019-12-06 01:53:59.229720"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.232000"], ["updated_at", "2019-12-06 01:53:59.232000"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/910” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.234281"], ["last_sign_in_at", "2019-12-06 01:53:59.234281"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.234772"], ["id", 1050]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"910"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 910], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gBLsq07TRqJkQO5sgT1AcemYGEQBy0LGmmJRKAgAh7FpAaIGEn1Im"], ["created_at", "2019-12-06 01:53:59.249450"], ["updated_at", "2019-12-06 01:53:59.249450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.251972"], ["last_sign_in_at", "2019-12-06 01:53:59.251972"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.252455"], ["id", 1051]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FwhotSfBr2EDNSRDcqbLke17CvMnnT55Ekp81vcCYiGfe16nIwV2C"], ["created_at", "2019-12-06 01:53:59.262457"], ["updated_at", "2019-12-06 01:53:59.262457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.264751"], ["updated_at", "2019-12-06 01:53:59.264751"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/911” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.266627"], ["last_sign_in_at", "2019-12-06 01:53:59.266627"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.267128"], ["id", 1052]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"911"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 911], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 911]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GI0jgOHPI0oqfo/bRNx1a.DyvyQSe0yEVRDUj32s5ZQz9Qt/QUP7C"], ["created_at", "2019-12-06 01:53:59.277802"], ["updated_at", "2019-12-06 01:53:59.277802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.280418"], ["updated_at", "2019-12-06 01:53:59.280418"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/912” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.282326"], ["last_sign_in_at", "2019-12-06 01:53:59.282326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.282814"], ["id", 1053]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"912"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 912], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 912]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jtBOt08xUzjAl88HHvd9ZO3FnZ/E87va1YD2QR.Aw7tyyPbhg5XHK"], ["created_at", "2019-12-06 01:53:59.294272"], ["updated_at", "2019-12-06 01:53:59.294272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.296920"], ["updated_at", "2019-12-06 01:53:59.296920"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/913” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.298902"], ["last_sign_in_at", "2019-12-06 01:53:59.298902"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.299385"], ["id", 1054]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"913"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ai7JBlGeUR26Ts/FYb183OJFLaGziw1YKRH7ia7qurUUfzRZjpJUO"], ["created_at", "2019-12-06 01:53:59.308889"], ["updated_at", "2019-12-06 01:53:59.308889"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:53:59.311298"], ["updated_at", "2019-12-06 01:53:59.311298"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/914” for 127.0.0.1 at 2019-12-05 22:53:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:53:59.313568"], ["last_sign_in_at", "2019-12-06 01:53:59.313568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:53:59.314088"], ["id", 1055]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"914"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$M7Vy13XTvkN3eVjfDXo5Vev3uBVZqjl2m//J/4pWcs3vm/yo59SiK"], ["created_at", "2019-12-06 01:56:21.290287"], ["updated_at", "2019-12-06 01:56:21.290287"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:21.299153"], ["updated_at", "2019-12-06 01:56:21.299153"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"915"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 915], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '915')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 151ms (Views: 107.7ms | ActiveRecord: 2.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/toBqxbR0X5WX/KNLZFUEeTXXsYxbw/mrSFlSfzW1B/nl1h4vqNPa"], ["created_at", "2019-12-06 01:56:21.459955"], ["updated_at", "2019-12-06 01:56:21.459955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:21.462291"], ["updated_at", "2019-12-06 01:56:21.462291"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 916], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1057], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1057], ["room_id", 916], ["created_at", "2019-12-06 01:56:21.497394"], ["updated_at", "2019-12-06 01:56:21.497394"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"916"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 916], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '916')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$t0EdksilOwINw/SPV7/OZ.vnUPpVL291vKD8jeeUeyw1qTbPbuJuy"], ["created_at", "2019-12-06 01:56:21.536579"], ["updated_at", "2019-12-06 01:56:21.536579"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:21.538771"], ["updated_at", "2019-12-06 01:56:21.538771"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 917], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1058], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1058], ["room_id", 917], ["created_at", "2019-12-06 01:56:21.542429"], ["updated_at", "2019-12-06 01:56:21.542429"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"917"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 917], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '917')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$l4tYu.kJ7z7gCWQmq5s2xufzd0Bn.29eGXDhqt/Bm0zQ2LlmacS9y"], ["created_at", "2019-12-06 01:56:21.561286"], ["updated_at", "2019-12-06 01:56:21.561286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:21.563472"], ["updated_at", "2019-12-06 01:56:21.563472"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 918], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1059], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1059], ["room_id", 918], ["created_at", "2019-12-06 01:56:21.567763"], ["updated_at", "2019-12-06 01:56:21.567763"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"918"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 918], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '918')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IKrolMGZEuzmYUbfvj329.VwckYO5sjcT//.x6jOGx2qbD6pB08WC"], ["created_at", "2019-12-06 01:56:21.588098"], ["updated_at", "2019-12-06 01:56:21.588098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:21.590339"], ["updated_at", "2019-12-06 01:56:21.590339"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 919], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1060], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1060], ["room_id", 919], ["created_at", "2019-12-06 01:56:21.594043"], ["updated_at", "2019-12-06 01:56:21.594043"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"919"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 919], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '919')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 105ms (Views: 74.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ghq7EZ8mvzWq3FvtHCIYWe33H.tRplfIBC1/J4c8gNhUrLBCd9DA."], ["created_at", "2019-12-06 01:56:22.162351"], ["updated_at", "2019-12-06 01:56:22.162351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.164743"], ["updated_at", "2019-12-06 01:56:22.164743"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.180903"], ["last_sign_in_at", "2019-12-06 01:56:22.180903"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.181637"], ["id", 1061]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"920"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 920], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1061], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1061], ["room_id", 920], ["created_at", "2019-12-06 01:56:22.201753"], ["updated_at", "2019-12-06 01:56:22.201753"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 920], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eqWU/SmrfpUmy5kB05Xlm.h4HFBNOJgJOuvjH9FqeEWOJwzOfjJ0O"], ["created_at", "2019-12-06 01:56:22.210495"], ["updated_at", "2019-12-06 01:56:22.210495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.212821"], ["updated_at", "2019-12-06 01:56:22.212821"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.215149"], ["last_sign_in_at", "2019-12-06 01:56:22.215149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.215733"], ["id", 1062]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"921"}
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 921], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1062], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1062], ["room_id", 921], ["created_at", "2019-12-06 01:56:22.220285"], ["updated_at", "2019-12-06 01:56:22.220285"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AnlflgRFUiDAut0KXe1/yepACPBSPoBaICokDjbZv9dxhAk4YIkn."], ["created_at", "2019-12-06 01:56:22.228237"], ["updated_at", "2019-12-06 01:56:22.228237"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.230235"], ["updated_at", "2019-12-06 01:56:22.230235"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.232614"], ["last_sign_in_at", "2019-12-06 01:56:22.232614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.233469"], ["id", 1063]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"922"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 922], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rBzMaYpiZBkC0Pr0zPZKbupPUtzZ00W6YITqte0mZDDnSYGQQp2F6"], ["created_at", "2019-12-06 01:56:22.241655"], ["updated_at", "2019-12-06 01:56:22.241655"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.243757"], ["updated_at", "2019-12-06 01:56:22.243757"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.245917"], ["last_sign_in_at", "2019-12-06 01:56:22.245917"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.246365"], ["id", 1064]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"923"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1lzKFEh.RLwl8un5Hp0Kh.CcE4HaVdzEZiV2MTLi3ymT2r6WE27gG"], ["created_at", "2019-12-06 01:56:22.255908"], ["updated_at", "2019-12-06 01:56:22.255908"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.257872"], ["updated_at", "2019-12-06 01:56:22.257872"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 924], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1065], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1065], ["room_id", 924], ["created_at", "2019-12-06 01:56:22.261302"], ["updated_at", "2019-12-06 01:56:22.261302"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/924” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.263544"], ["last_sign_in_at", "2019-12-06 01:56:22.263544"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.264061"], ["id", 1065]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"924"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 924], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '924')
Rendered appointments/show.html.erb within layouts/application (20.6ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 387ms (Views: 369.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vhx2QVkfNiWTEHSMX2ZBw./otUiSIb.haj5wyZw1.AZjFKocwq7kO"], ["created_at", "2019-12-06 01:56:22.660955"], ["updated_at", "2019-12-06 01:56:22.660955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.663127"], ["updated_at", "2019-12-06 01:56:22.663127"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 925], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1066], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1066], ["room_id", 925], ["created_at", "2019-12-06 01:56:22.667151"], ["updated_at", "2019-12-06 01:56:22.667151"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 925], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1066], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1066], ["room_id", 925], ["created_at", "2019-12-06 01:56:22.670960"], ["updated_at", "2019-12-06 01:56:22.670960"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.673560"], ["last_sign_in_at", "2019-12-06 01:56:22.673560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.674057"], ["id", 1066]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1066]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 37ms (Views: 4.7ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qjkVi.ke4STgk4jdW2pSKuoMbQvUTdil3xv2cjIubZhr57pUV5Khy"], ["created_at", "2019-12-06 01:56:22.719645"], ["updated_at", "2019-12-06 01:56:22.719645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.722033"], ["updated_at", "2019-12-06 01:56:22.722033"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 926], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1067], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1067], ["room_id", 926], ["created_at", "2019-12-06 01:56:22.726208"], ["updated_at", "2019-12-06 01:56:22.726208"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 926], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1067], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1067], ["room_id", 926], ["created_at", "2019-12-06 01:56:22.730613"], ["updated_at", "2019-12-06 01:56:22.730613"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.733474"], ["last_sign_in_at", "2019-12-06 01:56:22.733474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.734144"], ["id", 1067]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1067]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kMquyVQ9rLcSEtHc38Ed.eLgPZY/IkPNU2vaFGkX7SEgYG0zrczZm"], ["created_at", "2019-12-06 01:56:22.748243"], ["updated_at", "2019-12-06 01:56:22.748243"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.751062"], ["updated_at", "2019-12-06 01:56:22.751062"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 927], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1068], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1068], ["room_id", 927], ["created_at", "2019-12-06 01:56:22.755004"], ["updated_at", "2019-12-06 01:56:22.755004"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/469” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.757341"], ["last_sign_in_at", "2019-12-06 01:56:22.757341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.757836"], ["id", 1068]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"469"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 469], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 469]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EQlbR4V16C.gukisbHYLPOdlhNXMn4moxLXWHRdsIz72vLaENHTTC"], ["created_at", "2019-12-06 01:56:22.771571"], ["updated_at", "2019-12-06 01:56:22.771571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.774103"], ["last_sign_in_at", "2019-12-06 01:56:22.774103"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.774683"], ["id", 1069]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KssG5AqusvYBRLYIG3N3Qe6HXYtAK1AnOcGdTlkAFecOoLvvJ8Q4W"], ["created_at", "2019-12-06 01:56:22.819704"], ["updated_at", "2019-12-06 01:56:22.819704"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.821880"], ["updated_at", "2019-12-06 01:56:22.821880"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 928], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1070], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1070], ["room_id", 928], ["created_at", "2019-12-06 01:56:22.825733"], ["updated_at", "2019-12-06 01:56:22.825733"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 928], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1070], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1070], ["room_id", 928], ["created_at", "2019-12-06 01:56:22.829694"], ["updated_at", "2019-12-06 01:56:22.829694"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.832093"], ["last_sign_in_at", "2019-12-06 01:56:22.832093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.832745"], ["id", 1070]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 928], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1070], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1070], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iAnvtR23Bp8gxeDYlvOR6OrIHynLosQOO5fIww/EkHBvNur2hKCXK"], ["created_at", "2019-12-06 01:56:22.846106"], ["updated_at", "2019-12-06 01:56:22.846106"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.848358"], ["updated_at", "2019-12-06 01:56:22.848358"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 929], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1071], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1071], ["room_id", 929], ["created_at", "2019-12-06 01:56:22.852731"], ["updated_at", "2019-12-06 01:56:22.852731"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 929], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1071], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1071], ["room_id", 929], ["created_at", "2019-12-06 01:56:22.856603"], ["updated_at", "2019-12-06 01:56:22.856603"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.858959"], ["last_sign_in_at", "2019-12-06 01:56:22.858959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.859456"], ["id", 1071]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 929], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1071], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1071], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B/lVqdoKjB0LOKaYjqJL7eCqSbSKIphYVTHwCwNijTIpU7CYcER1O"], ["created_at", "2019-12-06 01:56:22.873933"], ["updated_at", "2019-12-06 01:56:22.873933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.876316"], ["updated_at", "2019-12-06 01:56:22.876316"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 930], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1072], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1072], ["room_id", 930], ["created_at", "2019-12-06 01:56:22.880142"], ["updated_at", "2019-12-06 01:56:22.880142"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 930], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1072], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1072], ["room_id", 930], ["created_at", "2019-12-06 01:56:22.884451"], ["updated_at", "2019-12-06 01:56:22.884451"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.886836"], ["last_sign_in_at", "2019-12-06 01:56:22.886836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.887403"], ["id", 1072]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$afwXme9b8BpWqcRH9U8D1..M5mPHpj/b6GjHKB6laBrdfvAHG74ey"], ["created_at", "2019-12-06 01:56:22.898819"], ["updated_at", "2019-12-06 01:56:22.898819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:22.901440"], ["updated_at", "2019-12-06 01:56:22.901440"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 931], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1073], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1073], ["room_id", 931], ["created_at", "2019-12-06 01:56:22.905384"], ["updated_at", "2019-12-06 01:56:22.905384"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 931], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1073], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1073], ["room_id", 931], ["created_at", "2019-12-06 01:56:22.909241"], ["updated_at", "2019-12-06 01:56:22.909241"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.911669"], ["last_sign_in_at", "2019-12-06 01:56:22.911669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.912171"], ["id", 1073]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EtxN37QQG6rsrGmsRemNWOO8za19m/f9H1h95.dYZfQPlM8UbNbL."], ["created_at", "2019-12-06 01:56:22.925901"], ["updated_at", "2019-12-06 01:56:22.925901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:56:22 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:22.928227"], ["last_sign_in_at", "2019-12-06 01:56:22.928227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:22.928821"], ["id", 1074]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 61ms (Views: 46.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bWzilxc/u5.iTtbjP3G.nuKHdxEHzylol9ZhuS143Pa.FnQY2NQMC"], ["created_at", "2019-12-06 01:56:23.002539"], ["updated_at", "2019-12-06 01:56:23.002539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.004752"], ["last_sign_in_at", "2019-12-06 01:56:23.004752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.005245"], ["id", 1075]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AkUfHXbE9zi3WN4LSS6jueSw/E34LmNb16OiguAIqeoK5YDPkhmBi"], ["created_at", "2019-12-06 01:56:23.014302"], ["updated_at", "2019-12-06 01:56:23.014302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.016843"], ["last_sign_in_at", "2019-12-06 01:56:23.016843"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.017460"], ["id", 1076]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f1lIm53W24zACQYbfHRx8OdLdcp2gcotIRVfAwPseguFfApJDpOvu"], ["created_at", "2019-12-06 01:56:23.044641"], ["updated_at", "2019-12-06 01:56:23.044641"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.046705"], ["last_sign_in_at", "2019-12-06 01:56:23.046705"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.047186"], ["id", 1077]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lFP.xzCVG5t08nprlyUeeu67DcwrJA774zgyD.bWqh8hIq.YKFxQ6"], ["created_at", "2019-12-06 01:56:23.067456"], ["updated_at", "2019-12-06 01:56:23.067456"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.069735"], ["updated_at", "2019-12-06 01:56:23.069735"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/932” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.071812"], ["last_sign_in_at", "2019-12-06 01:56:23.071812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.072317"], ["id", 1078]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"932"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 932], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$355dvmSMxmo/XKJ.EtE/WOXeE5K7gUUBkw1GFXq3t33LlF6qXoX.e"], ["created_at", "2019-12-06 01:56:23.099863"], ["updated_at", "2019-12-06 01:56:23.099863"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.102379"], ["updated_at", "2019-12-06 01:56:23.102379"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/933” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.104620"], ["last_sign_in_at", "2019-12-06 01:56:23.104620"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.105191"], ["id", 1079]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"933"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 933], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.114803"], ["updated_at", "2019-12-06 01:56:23.114803"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/934” for 127.0.0.1 at 2019-12-05 22:56:23 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"934"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p5FZ3eNiyQtI7mpAxhAgZ.O6kqvTdnZdAu8KuNZmMnyCLJqecZh06"], ["created_at", "2019-12-06 01:56:23.124927"], ["updated_at", "2019-12-06 01:56:23.124927"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.127131"], ["updated_at", "2019-12-06 01:56:23.127131"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/935/edit” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.129159"], ["last_sign_in_at", "2019-12-06 01:56:23.129159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.129657"], ["id", 1080]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"935"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 935], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 4.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qUyaNL.7fNOQmCAnwLo8r.5TO4SG6kH3krYdyWhvsGlPYxR3TIZoy"], ["created_at", "2019-12-06 01:56:23.159571"], ["updated_at", "2019-12-06 01:56:23.159571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.161818"], ["updated_at", "2019-12-06 01:56:23.161818"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/936/edit” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.163892"], ["last_sign_in_at", "2019-12-06 01:56:23.163892"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.164484"], ["id", 1081]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"936"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 936], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.182999"], ["updated_at", "2019-12-06 01:56:23.182999"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/937” for 127.0.0.1 at 2019-12-05 22:56:23 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"937"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PWeljqQfbLEKw4kVTcD1pe5Hvm9fRQZKZKSs7YblVTbZc4vRlkJCm"], ["created_at", "2019-12-06 01:56:23.193322"], ["updated_at", "2019-12-06 01:56:23.193322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.196666"], ["last_sign_in_at", "2019-12-06 01:56:23.196666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.197149"], ["id", 1082]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.200731"], ["updated_at", "2019-12-06 01:56:23.200731"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eBpCVlfjP41nXgxWobnfFedru15bkKkq/juZhg396R34kkZXHAvOu"], ["created_at", "2019-12-06 01:56:23.209026"], ["updated_at", "2019-12-06 01:56:23.209026"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.213034"], ["last_sign_in_at", "2019-12-06 01:56:23.213034"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.213666"], ["id", 1083]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.217208"], ["updated_at", "2019-12-06 01:56:23.217208"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QKJINKbmxl9V9klqOnfyPeYVFw4ltYisgPrLmkHnji4G8GCr3eM12"], ["created_at", "2019-12-06 01:56:23.225389"], ["updated_at", "2019-12-06 01:56:23.225389"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.227975"], ["last_sign_in_at", "2019-12-06 01:56:23.227975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.228463"], ["id", 1084]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$08F6lA7sr/LpXyt3FAL1POkp/4STqmux.mUTBbao0.rIdYRGSPAMG"], ["created_at", "2019-12-06 01:56:23.239081"], ["updated_at", "2019-12-06 01:56:23.239081"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.241768"], ["last_sign_in_at", "2019-12-06 01:56:23.241768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.242271"], ["id", 1085]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$egQY4rReKUwcWTSXDOTloeuMfJUnBdv5se.VAquCNneDq.YPO1MWi"], ["created_at", "2019-12-06 01:56:23.253168"], ["updated_at", "2019-12-06 01:56:23.253168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.255669"], ["last_sign_in_at", "2019-12-06 01:56:23.255669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.256258"], ["id", 1086]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eDW1xkaV4Fqgfa92Z3a41uiKv4FGXuJo88a9Icd9eYoJlEJYreZZS"], ["created_at", "2019-12-06 01:56:23.266678"], ["updated_at", "2019-12-06 01:56:23.266678"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.268952"], ["updated_at", "2019-12-06 01:56:23.268952"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/940” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.271194"], ["last_sign_in_at", "2019-12-06 01:56:23.271194"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.271673"], ["id", 1087]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"940"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 940], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:56:23.275730"], ["id", 940]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/940 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ezAkFfJTsX5HR3UyNB9eF.sbATeFsXiQeyEsKkzw5AW3p8Bgp.hiu"], ["created_at", "2019-12-06 01:56:23.283936"], ["updated_at", "2019-12-06 01:56:23.283936"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.286253"], ["updated_at", "2019-12-06 01:56:23.286253"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/941” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.288842"], ["last_sign_in_at", "2019-12-06 01:56:23.288842"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.289417"], ["id", 1088]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"941"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 941], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:56:23.293224"], ["id", 941]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/941 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dWsv4YSiVmfHyIUWwBmdAu5xYIkHdkvowQsHO3zQd7CpCZ6RxDsQO"], ["created_at", "2019-12-06 01:56:23.301637"], ["updated_at", "2019-12-06 01:56:23.301637"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.304055"], ["updated_at", "2019-12-06 01:56:23.304055"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/942” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.306343"], ["last_sign_in_at", "2019-12-06 01:56:23.306343"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.306919"], ["id", 1089]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"942"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 942], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rhOQiSNdBTV4VXOVyHNnY.5mhk/px6d6jJDAK6gyHBQY0EUGNsd/y"], ["created_at", "2019-12-06 01:56:23.321547"], ["updated_at", "2019-12-06 01:56:23.321547"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.323832"], ["updated_at", "2019-12-06 01:56:23.323832"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/943” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.326100"], ["last_sign_in_at", "2019-12-06 01:56:23.326100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.326612"], ["id", 1090]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"943"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 943], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eZxGl3fpyJEx1q0AjDGmKuOsFsvePHM/o0Hl2nMJqCfqF61LhavXS"], ["created_at", "2019-12-06 01:56:23.341145"], ["updated_at", "2019-12-06 01:56:23.341145"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.343698"], ["last_sign_in_at", "2019-12-06 01:56:23.343698"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.344206"], ["id", 1091]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lg7oK/rbATIPc5GF9Z3WJ.7o/3JPDn/STu7P8DHtWk/VdGCF2qtLS"], ["created_at", "2019-12-06 01:56:23.354601"], ["updated_at", "2019-12-06 01:56:23.354601"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.356976"], ["updated_at", "2019-12-06 01:56:23.356976"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/944” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.359385"], ["last_sign_in_at", "2019-12-06 01:56:23.359385"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.360115"], ["id", 1092]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"944"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 944], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 944]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Wi/AE9yZUBP.9NRCsp/LN.BbmB9n8ptnfvdVo2WOTlpEoPE/b5wIy"], ["created_at", "2019-12-06 01:56:23.372005"], ["updated_at", "2019-12-06 01:56:23.372005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.374170"], ["updated_at", "2019-12-06 01:56:23.374170"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/945” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.375969"], ["last_sign_in_at", "2019-12-06 01:56:23.375969"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.376459"], ["id", 1093]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"945"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 945], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 945]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HjLpgY9.Oq932IonZ0pMOOAx8lw4vYnus67iKz51W2Xl9I5F08Vk6"], ["created_at", "2019-12-06 01:56:23.387730"], ["updated_at", "2019-12-06 01:56:23.387730"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.389886"], ["updated_at", "2019-12-06 01:56:23.389886"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/946” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.391747"], ["last_sign_in_at", "2019-12-06 01:56:23.391747"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.392232"], ["id", 1094]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"946"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BpmXRWfcugj/lM7Mu48zl.7NA7yvxMBHs8DBx13jRg5gxSeRUplG6"], ["created_at", "2019-12-06 01:56:23.402136"], ["updated_at", "2019-12-06 01:56:23.402136"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:56:23.404433"], ["updated_at", "2019-12-06 01:56:23.404433"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/947” for 127.0.0.1 at 2019-12-05 22:56:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:56:23.406305"], ["last_sign_in_at", "2019-12-06 01:56:23.406305"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:56:23.406785"], ["id", 1095]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"947"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yylRK84GKxWaIXr9Z8LeDuGS/eOzavMDWJ5OTAVITg2MpdMmFLSwO"], ["created_at", "2019-12-06 01:57:59.643571"], ["updated_at", "2019-12-06 01:57:59.643571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:57:59.653226"], ["updated_at", "2019-12-06 01:57:59.653226"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"948"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 948], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '948')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 149ms (Views: 107.1ms | ActiveRecord: 2.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mtp6viAnA3Fim951M7Pkdu9JrhgTQnu.fLk01t/IfV9zrcLsWErRa"], ["created_at", "2019-12-06 01:57:59.812751"], ["updated_at", "2019-12-06 01:57:59.812751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:57:59.814989"], ["updated_at", "2019-12-06 01:57:59.814989"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 949], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1097], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1097], ["room_id", 949], ["created_at", "2019-12-06 01:57:59.850674"], ["updated_at", "2019-12-06 01:57:59.850674"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"949"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 949], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '949')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$V9Q/jLOCyM9GXffJZxc5eOp7lOsXJn0mHeQABw/Tj831CvlZOfFaW"], ["created_at", "2019-12-06 01:57:59.892880"], ["updated_at", "2019-12-06 01:57:59.892880"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:57:59.895076"], ["updated_at", "2019-12-06 01:57:59.895076"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 950], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1098], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1098], ["room_id", 950], ["created_at", "2019-12-06 01:57:59.898792"], ["updated_at", "2019-12-06 01:57:59.898792"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"950"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 950], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '950')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$p3CHa8rhg83e6734kOKrEeWWF/lDlWsLUa7o73NG0t0ZZDWc8vzwW"], ["created_at", "2019-12-06 01:57:59.916731"], ["updated_at", "2019-12-06 01:57:59.916731"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:57:59.918935"], ["updated_at", "2019-12-06 01:57:59.918935"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 951], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1099], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1099], ["room_id", 951], ["created_at", "2019-12-06 01:57:59.922871"], ["updated_at", "2019-12-06 01:57:59.922871"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"951"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 951], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '951')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0OPWuph8JN1ETT/5a7z3mOQ4rv/rE52zyHeK40TWDHi2GjZq6gT8W"], ["created_at", "2019-12-06 01:57:59.939454"], ["updated_at", "2019-12-06 01:57:59.939454"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:57:59.941612"], ["updated_at", "2019-12-06 01:57:59.941612"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 952], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1100], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1100], ["room_id", 952], ["created_at", "2019-12-06 01:57:59.945314"], ["updated_at", "2019-12-06 01:57:59.945314"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"952"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 952], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '952')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 104ms (Views: 73.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$esDz9bQt32wShbnmKhPbvuT4dythVdgZN5M57q6UeZYS0Ys4Yk3vS"], ["created_at", "2019-12-06 01:58:00.518598"], ["updated_at", "2019-12-06 01:58:00.518598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:00.520818"], ["updated_at", "2019-12-06 01:58:00.520818"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:58:00 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:00.536505"], ["last_sign_in_at", "2019-12-06 01:58:00.536505"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:00.537172"], ["id", 1101]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"953"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 953], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1101], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1101], ["room_id", 953], ["created_at", "2019-12-06 01:58:00.553580"], ["updated_at", "2019-12-06 01:58:00.553580"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 953], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vLrEm0lODcvezLKyv/GXsOodaQ0YnrKeBQmrlUIIueC.G13ThVP/G"], ["created_at", "2019-12-06 01:58:00.562897"], ["updated_at", "2019-12-06 01:58:00.562897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:00.565027"], ["updated_at", "2019-12-06 01:58:00.565027"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:58:00 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:00.567641"], ["last_sign_in_at", "2019-12-06 01:58:00.567641"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:00.568185"], ["id", 1102]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"954"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 954], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1102], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1102], ["room_id", 954], ["created_at", "2019-12-06 01:58:00.573445"], ["updated_at", "2019-12-06 01:58:00.573445"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FaQdiGu0KjvOMXK6Z965ueb4s2e3dZqQsW7d1awzHcHgXcp4RA2bS"], ["created_at", "2019-12-06 01:58:00.582027"], ["updated_at", "2019-12-06 01:58:00.582027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:00.584306"], ["updated_at", "2019-12-06 01:58:00.584306"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:58:00 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:00.587367"], ["last_sign_in_at", "2019-12-06 01:58:00.587367"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:00.587979"], ["id", 1103]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"955"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 955], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oWSMPb8M2X/0a9uaYUu2KugjFKYDGCN7mOyvqbZdD2WneViQFtgmq"], ["created_at", "2019-12-06 01:58:00.597811"], ["updated_at", "2019-12-06 01:58:00.597811"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:00.600001"], ["updated_at", "2019-12-06 01:58:00.600001"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 22:58:00 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:00.602414"], ["last_sign_in_at", "2019-12-06 01:58:00.602414"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:00.603080"], ["id", 1104]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"956"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aPDBy2FJOeIDWU22pOWJ3uguE8F.BUlHCDr.Qx63/FyWFNBZ3QFb6"], ["created_at", "2019-12-06 01:58:00.613064"], ["updated_at", "2019-12-06 01:58:00.613064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:00.615203"], ["updated_at", "2019-12-06 01:58:00.615203"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 957], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1105], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1105], ["room_id", 957], ["created_at", "2019-12-06 01:58:00.619107"], ["updated_at", "2019-12-06 01:58:00.619107"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/957” for 127.0.0.1 at 2019-12-05 22:58:00 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:00.621847"], ["last_sign_in_at", "2019-12-06 01:58:00.621847"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:00.622387"], ["id", 1105]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"957"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 957], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '957')
Rendered appointments/show.html.erb within layouts/application (20.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 388ms (Views: 370.8ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yiqYagRBvcYAWUN.KOErguXHTFA9Z2J8w9KaXtMjDsD6kYcvUzjyK"], ["created_at", "2019-12-06 01:58:01.020937"], ["updated_at", "2019-12-06 01:58:01.020937"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.023160"], ["updated_at", "2019-12-06 01:58:01.023160"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 958], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1106], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1106], ["room_id", 958], ["created_at", "2019-12-06 01:58:01.027040"], ["updated_at", "2019-12-06 01:58:01.027040"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 958], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1106], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1106], ["room_id", 958], ["created_at", "2019-12-06 01:58:01.030933"], ["updated_at", "2019-12-06 01:58:01.030933"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.033241"], ["last_sign_in_at", "2019-12-06 01:58:01.033241"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.033748"], ["id", 1106]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1106]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SIJOp39wZhhN35fmskL2mOtgpS7wg6zq41FKk46MM9n7YDu3wnuQy"], ["created_at", "2019-12-06 01:58:01.077546"], ["updated_at", "2019-12-06 01:58:01.077546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.079775"], ["updated_at", "2019-12-06 01:58:01.079775"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 959], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1107], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1107], ["room_id", 959], ["created_at", "2019-12-06 01:58:01.083606"], ["updated_at", "2019-12-06 01:58:01.083606"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 959], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1107], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1107], ["room_id", 959], ["created_at", "2019-12-06 01:58:01.087916"], ["updated_at", "2019-12-06 01:58:01.087916"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.090237"], ["last_sign_in_at", "2019-12-06 01:58:01.090237"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.090864"], ["id", 1107]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1107]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ohJS8xxZXOxvLw6FQpmaguYbOLhEXpI906u3VlIenXaAmMRpec9wC"], ["created_at", "2019-12-06 01:58:01.105001"], ["updated_at", "2019-12-06 01:58:01.105001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.107534"], ["updated_at", "2019-12-06 01:58:01.107534"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 960], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1108], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1108], ["room_id", 960], ["created_at", "2019-12-06 01:58:01.111769"], ["updated_at", "2019-12-06 01:58:01.111769"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/489” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.114161"], ["last_sign_in_at", "2019-12-06 01:58:01.114161"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.114794"], ["id", 1108]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"489"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 489], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 489]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$npc5WtotBfZeRv33t0pceuR5/nA741k7LqnAsSGvuPkWm0y3da/2W"], ["created_at", "2019-12-06 01:58:01.129970"], ["updated_at", "2019-12-06 01:58:01.129970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.132522"], ["last_sign_in_at", "2019-12-06 01:58:01.132522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.133152"], ["id", 1109]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 36ms (Views: 18.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G2zK4KRx4ZKBoME1wqorWOzWAyJzJXjqPAehSqzNQUf0RnsFi67cu"], ["created_at", "2019-12-06 01:58:01.178507"], ["updated_at", "2019-12-06 01:58:01.178507"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.180674"], ["updated_at", "2019-12-06 01:58:01.180674"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 961], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1110], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1110], ["room_id", 961], ["created_at", "2019-12-06 01:58:01.184399"], ["updated_at", "2019-12-06 01:58:01.184399"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 961], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1110], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1110], ["room_id", 961], ["created_at", "2019-12-06 01:58:01.188419"], ["updated_at", "2019-12-06 01:58:01.188419"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.190829"], ["last_sign_in_at", "2019-12-06 01:58:01.190829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.191414"], ["id", 1110]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 961], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1110], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1110], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bPdjS5JbRVmOikpbEfIKtOIHwFfG1PgMvBuQ6TP57dD.c8P9/Shhe"], ["created_at", "2019-12-06 01:58:01.205113"], ["updated_at", "2019-12-06 01:58:01.205113"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.207267"], ["updated_at", "2019-12-06 01:58:01.207267"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 962], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1111], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1111], ["room_id", 962], ["created_at", "2019-12-06 01:58:01.210746"], ["updated_at", "2019-12-06 01:58:01.210746"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 962], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1111], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1111], ["room_id", 962], ["created_at", "2019-12-06 01:58:01.215335"], ["updated_at", "2019-12-06 01:58:01.215335"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.217775"], ["last_sign_in_at", "2019-12-06 01:58:01.217775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.218297"], ["id", 1111]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 962], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1111], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1111], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SW01rqWwRIu2XVMPtP1Ujuyijhzr6m0EsGJZTpYkAHbOOW44sPbFe"], ["created_at", "2019-12-06 01:58:01.234246"], ["updated_at", "2019-12-06 01:58:01.234246"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.236791"], ["updated_at", "2019-12-06 01:58:01.236791"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 963], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1112], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1112], ["room_id", 963], ["created_at", "2019-12-06 01:58:01.240589"], ["updated_at", "2019-12-06 01:58:01.240589"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 963], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1112], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1112], ["room_id", 963], ["created_at", "2019-12-06 01:58:01.244579"], ["updated_at", "2019-12-06 01:58:01.244579"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.246878"], ["last_sign_in_at", "2019-12-06 01:58:01.246878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.247371"], ["id", 1112]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TrLLNv6LD3PLGQ03Bq4PdeakfaQlI4nL/fWChigzy5k.iSkcDOkMS"], ["created_at", "2019-12-06 01:58:01.258718"], ["updated_at", "2019-12-06 01:58:01.258718"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.261060"], ["updated_at", "2019-12-06 01:58:01.261060"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 964], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1113], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1113], ["room_id", 964], ["created_at", "2019-12-06 01:58:01.264690"], ["updated_at", "2019-12-06 01:58:01.264690"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 964], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1113], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1113], ["room_id", 964], ["created_at", "2019-12-06 01:58:01.268388"], ["updated_at", "2019-12-06 01:58:01.268388"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.271152"], ["last_sign_in_at", "2019-12-06 01:58:01.271152"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.271693"], ["id", 1113]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PGgWGD8i1N.02T9EpWV/6ePQDwVqXznEowWzx0UwW9N.00zENYPJa"], ["created_at", "2019-12-06 01:58:01.284768"], ["updated_at", "2019-12-06 01:58:01.284768"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.287336"], ["last_sign_in_at", "2019-12-06 01:58:01.287336"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.287868"], ["id", 1114]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 63ms (Views: 46.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b56hJIPR2F3RZW3ow4GtNOTAXhGVuYOSafNIVVRcZhGgSr1TirPKW"], ["created_at", "2019-12-06 01:58:01.362275"], ["updated_at", "2019-12-06 01:58:01.362275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.364495"], ["last_sign_in_at", "2019-12-06 01:58:01.364495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.364975"], ["id", 1115]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bhWa8ID.xLaTm6DrNfGkLupXRUcXC/mmL/o7L5rhe4rgEpfUALl/a"], ["created_at", "2019-12-06 01:58:01.375139"], ["updated_at", "2019-12-06 01:58:01.375139"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.377352"], ["last_sign_in_at", "2019-12-06 01:58:01.377352"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.377840"], ["id", 1116]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 19ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lvxWlX1wLFnrZhGPg8v3bu9zmReMia9gai83JmR64pHn4ydysmTFy"], ["created_at", "2019-12-06 01:58:01.405512"], ["updated_at", "2019-12-06 01:58:01.405512"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.407901"], ["last_sign_in_at", "2019-12-06 01:58:01.407901"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.408420"], ["id", 1117]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PDNERA8vgd8hHEggcDJMJeKmShj07l6m3G4PzRugdLXN1SzYZU4vm"], ["created_at", "2019-12-06 01:58:01.428879"], ["updated_at", "2019-12-06 01:58:01.428879"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.431362"], ["updated_at", "2019-12-06 01:58:01.431362"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/965” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.433964"], ["last_sign_in_at", "2019-12-06 01:58:01.433964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.434501"], ["id", 1118]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"965"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 965], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$X/23HoMCcssAjD1/6.djs.o6n1thmdHAIOiooaa0sF.yXdDw3yj2W"], ["created_at", "2019-12-06 01:58:01.460979"], ["updated_at", "2019-12-06 01:58:01.460979"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.463202"], ["updated_at", "2019-12-06 01:58:01.463202"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/966” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.465229"], ["last_sign_in_at", "2019-12-06 01:58:01.465229"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.465721"], ["id", 1119]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"966"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 966], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.474559"], ["updated_at", "2019-12-06 01:58:01.474559"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/967” for 127.0.0.1 at 2019-12-05 22:58:01 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"967"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cyuU96wrw/3h2WfvUl.myerj7vA1bSeoyoJ1qPgsMoBCJJm7.py8O"], ["created_at", "2019-12-06 01:58:01.483785"], ["updated_at", "2019-12-06 01:58:01.483785"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.485822"], ["updated_at", "2019-12-06 01:58:01.485822"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/968/edit” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.487990"], ["last_sign_in_at", "2019-12-06 01:58:01.487990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.488455"], ["id", 1120]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"968"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 968], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LG9QWu9VIzMeXs.fqfvz1.p9wdEsNdqKuetqcVBCgQJFgXtNFO6Aa"], ["created_at", "2019-12-06 01:58:01.515204"], ["updated_at", "2019-12-06 01:58:01.515204"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.517197"], ["updated_at", "2019-12-06 01:58:01.517197"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/969/edit” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.519513"], ["last_sign_in_at", "2019-12-06 01:58:01.519513"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.527539"], ["id", 1121]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"969"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 969], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.537401"], ["updated_at", "2019-12-06 01:58:01.537401"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/970” for 127.0.0.1 at 2019-12-05 22:58:01 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"970"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VfumtCek6TOwnjIOukNiP.ONYIi5vcBS/UPd0y6AyE75LW1vOSQTC"], ["created_at", "2019-12-06 01:58:01.547772"], ["updated_at", "2019-12-06 01:58:01.547772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.550213"], ["last_sign_in_at", "2019-12-06 01:58:01.550213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.550703"], ["id", 1122]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.553927"], ["updated_at", "2019-12-06 01:58:01.553927"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lC1YxhUGFLfVozm3Y7JZOum7KYTAos4sbrac1eWfjmWj30BgdsT4O"], ["created_at", "2019-12-06 01:58:01.561826"], ["updated_at", "2019-12-06 01:58:01.561826"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.564198"], ["last_sign_in_at", "2019-12-06 01:58:01.564198"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.564664"], ["id", 1123]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.567484"], ["updated_at", "2019-12-06 01:58:01.567484"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bMeqlEQABgzS3kZ5P5FPHOVMjZI0e2Ii4F6qcB//SYtLVkcGenryK"], ["created_at", "2019-12-06 01:58:01.575469"], ["updated_at", "2019-12-06 01:58:01.575469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.577985"], ["last_sign_in_at", "2019-12-06 01:58:01.577985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.578493"], ["id", 1124]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0LmhbdupU4lQJmywQuVb5OJXWFS1fmYbLElstax3gjJn4GQee8SXC"], ["created_at", "2019-12-06 01:58:01.589400"], ["updated_at", "2019-12-06 01:58:01.589400"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.591925"], ["last_sign_in_at", "2019-12-06 01:58:01.591925"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.592405"], ["id", 1125]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J8UM1RcrgUkrVMm0kNiggeF/9uEgfMOwO5W2FtddGyav8/qPjG0My"], ["created_at", "2019-12-06 01:58:01.603576"], ["updated_at", "2019-12-06 01:58:01.603576"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.606451"], ["last_sign_in_at", "2019-12-06 01:58:01.606451"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.606940"], ["id", 1126]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fUB2hIGCtnvpcy1qtTj/GuDL16Gw2Cz3Mc0VTZ5U2GJ7gW9QHW16q"], ["created_at", "2019-12-06 01:58:01.616828"], ["updated_at", "2019-12-06 01:58:01.616828"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.619340"], ["updated_at", "2019-12-06 01:58:01.619340"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/973” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.621941"], ["last_sign_in_at", "2019-12-06 01:58:01.621941"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.622452"], ["id", 1127]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"973"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 973], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:58:01.626185"], ["id", 973]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/973 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$702H/M0w5Vm9x87TuBLPQuhDWSuSOyBB8VqYBbIQjeruOCt8AwLJi"], ["created_at", "2019-12-06 01:58:01.634447"], ["updated_at", "2019-12-06 01:58:01.634447"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.637652"], ["updated_at", "2019-12-06 01:58:01.637652"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/974” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.639974"], ["last_sign_in_at", "2019-12-06 01:58:01.639974"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.640466"], ["id", 1128]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"974"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 974], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 01:58:01.644133"], ["id", 974]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/974 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dY3okPZRVcsjvtOgrpCPXeckBuOKtdrY472zIOWesj3uRVuI4lxSm"], ["created_at", "2019-12-06 01:58:01.653422"], ["updated_at", "2019-12-06 01:58:01.653422"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.655702"], ["updated_at", "2019-12-06 01:58:01.655702"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/975” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.657906"], ["last_sign_in_at", "2019-12-06 01:58:01.657906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.658402"], ["id", 1129]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"975"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 975], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TLHtPQQvpXQ7K0dfLF9pKuHP70b9bhAl.jTduZ66nSV5DlX86wQxq"], ["created_at", "2019-12-06 01:58:01.673147"], ["updated_at", "2019-12-06 01:58:01.673147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.675324"], ["updated_at", "2019-12-06 01:58:01.675324"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/976” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.677519"], ["last_sign_in_at", "2019-12-06 01:58:01.677519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.678007"], ["id", 1130]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"976"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 976], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I/2glJUUqn8kBv.WwSrsVeHaCT9rnNZfW4TqOQxD5jiqYXBDhipzu"], ["created_at", "2019-12-06 01:58:01.692365"], ["updated_at", "2019-12-06 01:58:01.692365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.694934"], ["last_sign_in_at", "2019-12-06 01:58:01.694934"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.695419"], ["id", 1131]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AiBssQoAXS7avUGoZRvTvOpKAo/BEqI3549Ed9UQCnCAeOxC5gTSe"], ["created_at", "2019-12-06 01:58:01.705570"], ["updated_at", "2019-12-06 01:58:01.705570"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.707725"], ["updated_at", "2019-12-06 01:58:01.707725"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/977” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.709568"], ["last_sign_in_at", "2019-12-06 01:58:01.709568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.710049"], ["id", 1132]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"977"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 977], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 977]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1y8B7XipS2V4gs9fL2E.B.P/MA3bXbzSR9DW/slEQCefGFojCRQKC"], ["created_at", "2019-12-06 01:58:01.721180"], ["updated_at", "2019-12-06 01:58:01.721180"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.723339"], ["updated_at", "2019-12-06 01:58:01.723339"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/978” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.725150"], ["last_sign_in_at", "2019-12-06 01:58:01.725150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.725617"], ["id", 1133]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"978"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 978], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 978]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A9Cj70/0gzRVreO/7lDTyuraK9S6U/0AaOYYQWxbaDcW/kKhFbN5G"], ["created_at", "2019-12-06 01:58:01.736736"], ["updated_at", "2019-12-06 01:58:01.736736"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.738941"], ["updated_at", "2019-12-06 01:58:01.738941"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/979” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.740756"], ["last_sign_in_at", "2019-12-06 01:58:01.740756"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.741240"], ["id", 1134]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"979"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.QlJb3BcLkGnqin84CGO5eRHYZRvsGANogNuKzu7hH8MP161Jnsi6"], ["created_at", "2019-12-06 01:58:01.750211"], ["updated_at", "2019-12-06 01:58:01.750211"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 01:58:01.752478"], ["updated_at", "2019-12-06 01:58:01.752478"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/980” for 127.0.0.1 at 2019-12-05 22:58:01 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 01:58:01.754640"], ["last_sign_in_at", "2019-12-06 01:58:01.754640"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 01:58:01.755131"], ["id", 1135]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"980"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (7.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (3.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FMfnap7j.yaMp3fov.c26.NTA5vcbPpM4JZpwEVmK5NbBrSbF1RGy"], ["created_at", "2019-12-06 02:00:15.932014"], ["updated_at", "2019-12-06 02:00:15.932014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (3.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:15.943470"], ["updated_at", "2019-12-06 02:00:15.943470"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"981"}
Room Load (2.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 981], ["LIMIT", 1]]
Appointment Load (8.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '981')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 161ms (Views: 107.6ms | ActiveRecord: 12.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QuNi0ESzsyzrD2zBswLzlugSSJJD3sgUgqHctMDFz/bgbIEbMiTau"], ["created_at", "2019-12-06 02:00:16.117547"], ["updated_at", "2019-12-06 02:00:16.117547"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.119873"], ["updated_at", "2019-12-06 02:00:16.119873"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 982], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1137], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1137], ["room_id", 982], ["created_at", "2019-12-06 02:00:16.155739"], ["updated_at", "2019-12-06 02:00:16.155739"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"982"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 982], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '982')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yVwS3M6pLvr.CIbHEY6pouEYPORRwnV4Tse4zKZXjFoJVS6rXhNMS"], ["created_at", "2019-12-06 02:00:16.199551"], ["updated_at", "2019-12-06 02:00:16.199551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.201811"], ["updated_at", "2019-12-06 02:00:16.201811"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 983], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1138], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1138], ["room_id", 983], ["created_at", "2019-12-06 02:00:16.205678"], ["updated_at", "2019-12-06 02:00:16.205678"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"983"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 983], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '983')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cqGp.QUdB/GYh5s1aTAxW.hCO3Fgi3NnuKb.GKbzuJ9/uL9XQ10Zi"], ["created_at", "2019-12-06 02:00:16.223091"], ["updated_at", "2019-12-06 02:00:16.223091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.225685"], ["updated_at", "2019-12-06 02:00:16.225685"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 984], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1139], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1139], ["room_id", 984], ["created_at", "2019-12-06 02:00:16.229688"], ["updated_at", "2019-12-06 02:00:16.229688"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"984"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 984], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '984')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KsaxMOip7BAmDk2tVnjy.OuN9qdVmFClP2PYSoZ7aYLJc0yVzR.jS"], ["created_at", "2019-12-06 02:00:16.247524"], ["updated_at", "2019-12-06 02:00:16.247524"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.249770"], ["updated_at", "2019-12-06 02:00:16.249770"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 985], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1140], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1140], ["room_id", 985], ["created_at", "2019-12-06 02:00:16.254390"], ["updated_at", "2019-12-06 02:00:16.254390"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"985"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 985], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '985')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 110ms (Views: 77.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$U6s1vNRDp9BxSg8EDD1Yx.DBaStzkd7JkvJjx1Zku6qZXOkXnCboi"], ["created_at", "2019-12-06 02:00:16.829809"], ["updated_at", "2019-12-06 02:00:16.829809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.832079"], ["updated_at", "2019-12-06 02:00:16.832079"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:00:16 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:16.851941"], ["last_sign_in_at", "2019-12-06 02:00:16.851941"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:16.852666"], ["id", 1141]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"986"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 986], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1141], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1141], ["room_id", 986], ["created_at", "2019-12-06 02:00:16.869693"], ["updated_at", "2019-12-06 02:00:16.869693"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 986], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Y3Wu9hVSMp/0UKH0TvQubumYdV3oFV5zAcA8Td37hIsp4cKbdcdG2"], ["created_at", "2019-12-06 02:00:16.879047"], ["updated_at", "2019-12-06 02:00:16.879047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.881209"], ["updated_at", "2019-12-06 02:00:16.881209"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:00:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:16.883581"], ["last_sign_in_at", "2019-12-06 02:00:16.883581"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:16.884128"], ["id", 1142]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"987"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 987], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1142], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1142], ["room_id", 987], ["created_at", "2019-12-06 02:00:16.889055"], ["updated_at", "2019-12-06 02:00:16.889055"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WKP5YgSIPxVwCmpWKeiBqOoI95msigD75hfY01OGcjAumzN3VjGYi"], ["created_at", "2019-12-06 02:00:16.897832"], ["updated_at", "2019-12-06 02:00:16.897832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.900046"], ["updated_at", "2019-12-06 02:00:16.900046"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:00:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:16.902484"], ["last_sign_in_at", "2019-12-06 02:00:16.902484"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:16.903005"], ["id", 1143]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"988"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 988], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3snQqnnBuFzry4As0tFG6Oj71ISD2L6SO2/Xjm8WT.SHkuUx6bGd6"], ["created_at", "2019-12-06 02:00:16.912634"], ["updated_at", "2019-12-06 02:00:16.912634"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.914988"], ["updated_at", "2019-12-06 02:00:16.914988"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:00:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:16.917488"], ["last_sign_in_at", "2019-12-06 02:00:16.917488"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:16.917998"], ["id", 1144]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"989"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KcVD0GJeET3G4m61eX.5T.oAHzOnvpoQLYPTfVQ9pvj0bDSEcI4xK"], ["created_at", "2019-12-06 02:00:16.928499"], ["updated_at", "2019-12-06 02:00:16.928499"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:16.930743"], ["updated_at", "2019-12-06 02:00:16.930743"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 990], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1145], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1145], ["room_id", 990], ["created_at", "2019-12-06 02:00:16.934633"], ["updated_at", "2019-12-06 02:00:16.934633"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/990” for 127.0.0.1 at 2019-12-05 23:00:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:16.937175"], ["last_sign_in_at", "2019-12-06 02:00:16.937175"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:16.937741"], ["id", 1145]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"990"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 990], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '990')
Rendered appointments/show.html.erb within layouts/application (20.4ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 390ms (Views: 372.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$T7F8mCxJOEX75FU.fjDBeeIQ/eRRn9/eUmRozXAIH5mtm1U3UnMHy"], ["created_at", "2019-12-06 02:00:17.337092"], ["updated_at", "2019-12-06 02:00:17.337092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.339381"], ["updated_at", "2019-12-06 02:00:17.339381"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 991], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1146], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1146], ["room_id", 991], ["created_at", "2019-12-06 02:00:17.343927"], ["updated_at", "2019-12-06 02:00:17.343927"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 991], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1146], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1146], ["room_id", 991], ["created_at", "2019-12-06 02:00:17.348063"], ["updated_at", "2019-12-06 02:00:17.348063"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.350593"], ["last_sign_in_at", "2019-12-06 02:00:17.350593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.351136"], ["id", 1146]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1146]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 37ms (Views: 4.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XpipgOqtACiAL3BTU8EZa.lMo9T7Lf6F/EhLiZ7Up6ZXTUlLxZKEW"], ["created_at", "2019-12-06 02:00:17.397111"], ["updated_at", "2019-12-06 02:00:17.397111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.399501"], ["updated_at", "2019-12-06 02:00:17.399501"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 992], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1147], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1147], ["room_id", 992], ["created_at", "2019-12-06 02:00:17.403252"], ["updated_at", "2019-12-06 02:00:17.403252"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 992], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1147], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1147], ["room_id", 992], ["created_at", "2019-12-06 02:00:17.407366"], ["updated_at", "2019-12-06 02:00:17.407366"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.409759"], ["last_sign_in_at", "2019-12-06 02:00:17.409759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.410253"], ["id", 1147]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1147]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yZ0a7NrGEA5lzslj/iAd7e4U7PG1Ia2xedxkfJKM8a6e.OuzF/A3y"], ["created_at", "2019-12-06 02:00:17.424425"], ["updated_at", "2019-12-06 02:00:17.424425"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.426931"], ["updated_at", "2019-12-06 02:00:17.426931"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 993], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1148], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1148], ["room_id", 993], ["created_at", "2019-12-06 02:00:17.431298"], ["updated_at", "2019-12-06 02:00:17.431298"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/509” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.434063"], ["last_sign_in_at", "2019-12-06 02:00:17.434063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.434705"], ["id", 1148]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"509"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 509], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 509]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ENLc0mKoqcekQirBVi8ES.PPwizswPUOchb8Y/s16i/e7HPFR48W6"], ["created_at", "2019-12-06 02:00:17.450606"], ["updated_at", "2019-12-06 02:00:17.450606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.453102"], ["last_sign_in_at", "2019-12-06 02:00:17.453102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.453615"], ["id", 1149]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 37ms (Views: 20.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LCD74zUyYvR1FSuib9xWY.sy3moxpQBNwdNUvMgls0GwvqwhZ1qD2"], ["created_at", "2019-12-06 02:00:17.500882"], ["updated_at", "2019-12-06 02:00:17.500882"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.502892"], ["updated_at", "2019-12-06 02:00:17.502892"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 994], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1150], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1150], ["room_id", 994], ["created_at", "2019-12-06 02:00:17.506307"], ["updated_at", "2019-12-06 02:00:17.506307"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 994], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1150], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1150], ["room_id", 994], ["created_at", "2019-12-06 02:00:17.510400"], ["updated_at", "2019-12-06 02:00:17.510400"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.512519"], ["last_sign_in_at", "2019-12-06 02:00:17.512519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.512980"], ["id", 1150]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 994], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1150], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1150], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BvsohDgIR814SaSji/PLU.wKXrqw4KInMrLeN4IPURv0rXvLhGGue"], ["created_at", "2019-12-06 02:00:17.526064"], ["updated_at", "2019-12-06 02:00:17.526064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.528444"], ["updated_at", "2019-12-06 02:00:17.528444"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 995], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1151], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1151], ["room_id", 995], ["created_at", "2019-12-06 02:00:17.531826"], ["updated_at", "2019-12-06 02:00:17.531826"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 995], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1151], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1151], ["room_id", 995], ["created_at", "2019-12-06 02:00:17.535192"], ["updated_at", "2019-12-06 02:00:17.535192"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.537303"], ["last_sign_in_at", "2019-12-06 02:00:17.537303"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.537769"], ["id", 1151]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 995], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1151], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1151], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AiUHi1KW.vCriXR18waChuBW7kFKtvyqNpaDzvL2sU81F5bqbYkUS"], ["created_at", "2019-12-06 02:00:17.552045"], ["updated_at", "2019-12-06 02:00:17.552045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.554333"], ["updated_at", "2019-12-06 02:00:17.554333"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 996], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1152], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1152], ["room_id", 996], ["created_at", "2019-12-06 02:00:17.558389"], ["updated_at", "2019-12-06 02:00:17.558389"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 996], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1152], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1152], ["room_id", 996], ["created_at", "2019-12-06 02:00:17.561929"], ["updated_at", "2019-12-06 02:00:17.561929"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.563979"], ["last_sign_in_at", "2019-12-06 02:00:17.563979"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.564432"], ["id", 1152]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tkvT/rYO96tGymYXcCNQgOxIXVw.JGa0BinIbk.ed7eTeSLhMZe3."], ["created_at", "2019-12-06 02:00:17.575915"], ["updated_at", "2019-12-06 02:00:17.575915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.578235"], ["updated_at", "2019-12-06 02:00:17.578235"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 997], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1153], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1153], ["room_id", 997], ["created_at", "2019-12-06 02:00:17.581973"], ["updated_at", "2019-12-06 02:00:17.581973"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 997], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1153], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1153], ["room_id", 997], ["created_at", "2019-12-06 02:00:17.586104"], ["updated_at", "2019-12-06 02:00:17.586104"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.588677"], ["last_sign_in_at", "2019-12-06 02:00:17.588677"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.589202"], ["id", 1153]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$unrmWzI9Bzp2mh7K4H7ZheSdWYkFv9s1x2CfKnswRzRiXYVEOP9A6"], ["created_at", "2019-12-06 02:00:17.603690"], ["updated_at", "2019-12-06 02:00:17.603690"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.606160"], ["last_sign_in_at", "2019-12-06 02:00:17.606160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.606846"], ["id", 1154]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 61ms (Views: 45.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vH2yJperBft54u4l6t9J8.AZ.0GZZup1siowm7Cv56C3Vl58xGKJC"], ["created_at", "2019-12-06 02:00:17.679734"], ["updated_at", "2019-12-06 02:00:17.679734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.682024"], ["last_sign_in_at", "2019-12-06 02:00:17.682024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.682512"], ["id", 1155]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hZWGPXrOZcXdfbSFxDzAxOGGrB/ekdm1X7oGyJP1Y1IYuUdZWJoD."], ["created_at", "2019-12-06 02:00:17.692161"], ["updated_at", "2019-12-06 02:00:17.692161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.694474"], ["last_sign_in_at", "2019-12-06 02:00:17.694474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.694958"], ["id", 1156]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7mykvhNJpMsxnUUuim6sEOaxCQQTuG7QcRFleyMI3eUCMfODW3kTG"], ["created_at", "2019-12-06 02:00:17.723126"], ["updated_at", "2019-12-06 02:00:17.723126"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.725943"], ["last_sign_in_at", "2019-12-06 02:00:17.725943"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.726576"], ["id", 1157]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P695AI/Mo5WsLQ3RFcH4JOe5.SzOd64SQSzANiTSAw8EkzBpH51kq"], ["created_at", "2019-12-06 02:00:17.747285"], ["updated_at", "2019-12-06 02:00:17.747285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.749265"], ["updated_at", "2019-12-06 02:00:17.749265"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/998” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.751153"], ["last_sign_in_at", "2019-12-06 02:00:17.751153"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.751620"], ["id", 1158]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"998"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 998], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bvW2.8hXZFEz3LTzAtR3Bu2MEbq.G25cVvbvrQ/lZrHOqN.kfuUye"], ["created_at", "2019-12-06 02:00:17.777305"], ["updated_at", "2019-12-06 02:00:17.777305"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.779580"], ["updated_at", "2019-12-06 02:00:17.779580"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/999” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.781690"], ["last_sign_in_at", "2019-12-06 02:00:17.781690"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.782210"], ["id", 1159]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"999"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 999], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.791873"], ["updated_at", "2019-12-06 02:00:17.791873"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1000” for 127.0.0.1 at 2019-12-05 23:00:17 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1000"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RXuEbHLn9I3CoSD8Ck/x1O7xy7cfDqkEJxoq4Mc0eRjL9DRyAwN1W"], ["created_at", "2019-12-06 02:00:17.801128"], ["updated_at", "2019-12-06 02:00:17.801128"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.803119"], ["updated_at", "2019-12-06 02:00:17.803119"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1001/edit” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.805093"], ["last_sign_in_at", "2019-12-06 02:00:17.805093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.805649"], ["id", 1160]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1001"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1001], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m11qNfNBRK7y11AZkRxIg.kQ.VuUF1WKErbHP6KjYPj/JUwSj.DE."], ["created_at", "2019-12-06 02:00:17.833316"], ["updated_at", "2019-12-06 02:00:17.833316"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.835240"], ["updated_at", "2019-12-06 02:00:17.835240"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1002/edit” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.837164"], ["last_sign_in_at", "2019-12-06 02:00:17.837164"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.837620"], ["id", 1161]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1002"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1002], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.855178"], ["updated_at", "2019-12-06 02:00:17.855178"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1003” for 127.0.0.1 at 2019-12-05 23:00:17 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1003"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UzTrFkE8abT4yAMb9xGeW.ZRuaIBtxQOo5fbMvn/aG9DR7Kj.PyWG"], ["created_at", "2019-12-06 02:00:17.865786"], ["updated_at", "2019-12-06 02:00:17.865786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.868325"], ["last_sign_in_at", "2019-12-06 02:00:17.868325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.868814"], ["id", 1162]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.871725"], ["updated_at", "2019-12-06 02:00:17.871725"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5I6e.yTAk9VfZxhxN4.9POnNzhdQtb9P90.RZvb0du5uAF19aL6gq"], ["created_at", "2019-12-06 02:00:17.879271"], ["updated_at", "2019-12-06 02:00:17.879271"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.881583"], ["last_sign_in_at", "2019-12-06 02:00:17.881583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.882043"], ["id", 1163]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.885039"], ["updated_at", "2019-12-06 02:00:17.885039"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XaMb6zIcx0Ra/pookTAWjuxNA06NCuDACbGoXkNBIUpABDYCp6aWa"], ["created_at", "2019-12-06 02:00:17.892827"], ["updated_at", "2019-12-06 02:00:17.892827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.895367"], ["last_sign_in_at", "2019-12-06 02:00:17.895367"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.895833"], ["id", 1164]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ihWUkoFE6laisY9mr.ubDe6FnZp/1ybg17yW.YKTT/zKl2P4DIhku"], ["created_at", "2019-12-06 02:00:17.905562"], ["updated_at", "2019-12-06 02:00:17.905562"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.908276"], ["last_sign_in_at", "2019-12-06 02:00:17.908276"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.908760"], ["id", 1165]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NRTlDGoKJ8CokaervFaQBuxIDh/jNcmsM2S4E9M02LTXa6Eospt7i"], ["created_at", "2019-12-06 02:00:17.919046"], ["updated_at", "2019-12-06 02:00:17.919046"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.921488"], ["last_sign_in_at", "2019-12-06 02:00:17.921488"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.921978"], ["id", 1166]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CyFO1sYY2lvG88f.2v/WBOrIEHfI47D2Y3rUFmoNs65nbbokHdKtG"], ["created_at", "2019-12-06 02:00:17.932877"], ["updated_at", "2019-12-06 02:00:17.932877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.935039"], ["updated_at", "2019-12-06 02:00:17.935039"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1006” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.937180"], ["last_sign_in_at", "2019-12-06 02:00:17.937180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.937691"], ["id", 1167]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1006"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1006], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:00:17.941796"], ["id", 1006]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1006 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qhEBsLU61mCDEhkqcvZj8uooAsMJK6V4DlkFSbUZQG.bGx4g1k1I6"], ["created_at", "2019-12-06 02:00:17.949894"], ["updated_at", "2019-12-06 02:00:17.949894"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.952082"], ["updated_at", "2019-12-06 02:00:17.952082"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1007” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.954283"], ["last_sign_in_at", "2019-12-06 02:00:17.954283"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.954776"], ["id", 1168]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1007"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1007], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:00:17.958812"], ["id", 1007]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1007 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aOgbBG1Sq9YmLWbpD6A4aeeccvI9kVEX0mzfcSC7YbQPI7qAyWSfm"], ["created_at", "2019-12-06 02:00:17.967589"], ["updated_at", "2019-12-06 02:00:17.967589"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.969758"], ["updated_at", "2019-12-06 02:00:17.969758"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1008” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.971960"], ["last_sign_in_at", "2019-12-06 02:00:17.971960"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.972450"], ["id", 1169]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1008"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1008], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GiqhLubNPj//6O0z0CB1XuOaUWQpb1jh1R3Mj9o.wsy.1e1sFAKZe"], ["created_at", "2019-12-06 02:00:17.986584"], ["updated_at", "2019-12-06 02:00:17.986584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:17.988755"], ["updated_at", "2019-12-06 02:00:17.988755"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1009” for 127.0.0.1 at 2019-12-05 23:00:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:17.991323"], ["last_sign_in_at", "2019-12-06 02:00:17.991323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:17.991879"], ["id", 1170]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1009"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1009], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xcxWxVzvOjpyi30E3RzDF.hZYNkk7XWzwJTvGf6qxwCCgahyWPBU2"], ["created_at", "2019-12-06 02:00:18.005663"], ["updated_at", "2019-12-06 02:00:18.005663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:00:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:18.009002"], ["last_sign_in_at", "2019-12-06 02:00:18.009002"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:18.009541"], ["id", 1171]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f5gxFMRAo0vSJVKM7JArcusAYGF3W6AvRZzYfUTurlTju9pxPF9zO"], ["created_at", "2019-12-06 02:00:18.019091"], ["updated_at", "2019-12-06 02:00:18.019091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:18.021215"], ["updated_at", "2019-12-06 02:00:18.021215"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1010” for 127.0.0.1 at 2019-12-05 23:00:18 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:18.023136"], ["last_sign_in_at", "2019-12-06 02:00:18.023136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:18.023949"], ["id", 1172]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1010"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1010], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1010]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jcC8W.OGbHXvvB4IsOskXeXX619Rc9zKTiT4YBHjdFvvU4POm7zu."], ["created_at", "2019-12-06 02:00:18.034795"], ["updated_at", "2019-12-06 02:00:18.034795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:18.036951"], ["updated_at", "2019-12-06 02:00:18.036951"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1011” for 127.0.0.1 at 2019-12-05 23:00:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:18.038784"], ["last_sign_in_at", "2019-12-06 02:00:18.038784"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:18.039337"], ["id", 1173]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1011"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1011], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1011]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KuyO3mswdwzsjpuPq2nUg..lhNxhm5LXTs8rVwiPx8eTJuKOuBTua"], ["created_at", "2019-12-06 02:00:18.051288"], ["updated_at", "2019-12-06 02:00:18.051288"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:18.053434"], ["updated_at", "2019-12-06 02:00:18.053434"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1012” for 127.0.0.1 at 2019-12-05 23:00:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:18.055501"], ["last_sign_in_at", "2019-12-06 02:00:18.055501"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:18.056039"], ["id", 1174]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1012"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EJDT52Ol3Its6H2NFMiQ/Ou2JeKwvRZhfMRdhjS9ADVJ3rSkNLuJu"], ["created_at", "2019-12-06 02:00:18.065207"], ["updated_at", "2019-12-06 02:00:18.065207"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:00:18.067336"], ["updated_at", "2019-12-06 02:00:18.067336"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1013” for 127.0.0.1 at 2019-12-05 23:00:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:00:18.069156"], ["last_sign_in_at", "2019-12-06 02:00:18.069156"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:00:18.069638"], ["id", 1175]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1013"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OCyBIILm4vV0amyeVmUt3.Yf3MC8bXID1.eJMaT1Lc0Th9GHSb1xy"], ["created_at", "2019-12-06 02:06:09.894849"], ["updated_at", "2019-12-06 02:06:09.894849"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:09.903774"], ["updated_at", "2019-12-06 02:06:09.903774"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1014"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1014], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1014')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 152ms (Views: 107.8ms | ActiveRecord: 2.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6tNG3BvRC9Mzs5ki59UZF.PWFFwOX6IpL4sAM9tIDe87eh5p337Dm"], ["created_at", "2019-12-06 02:06:10.066983"], ["updated_at", "2019-12-06 02:06:10.066983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.070198"], ["updated_at", "2019-12-06 02:06:10.070198"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1015], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1177], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1177], ["room_id", 1015], ["created_at", "2019-12-06 02:06:10.107871"], ["updated_at", "2019-12-06 02:06:10.107871"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1015"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1015], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1015')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2FbJ.MueI6xqiWVBpvXFTep1BGj.DOHnV79Tow/Mot7RMrdj6aYdO"], ["created_at", "2019-12-06 02:06:10.180925"], ["updated_at", "2019-12-06 02:06:10.180925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.183239"], ["updated_at", "2019-12-06 02:06:10.183239"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1016], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1178], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1178], ["room_id", 1016], ["created_at", "2019-12-06 02:06:10.188066"], ["updated_at", "2019-12-06 02:06:10.188066"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1016"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1016], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1016')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$f4svYzzv5U1FeQGFOVb7gOLsnO88FMPerCagYx8BfGtia10IP4L62"], ["created_at", "2019-12-06 02:06:10.205796"], ["updated_at", "2019-12-06 02:06:10.205796"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.208024"], ["updated_at", "2019-12-06 02:06:10.208024"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1017], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1179], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1179], ["room_id", 1017], ["created_at", "2019-12-06 02:06:10.212200"], ["updated_at", "2019-12-06 02:06:10.212200"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1017"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1017], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1017')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hR38yqJO6VQZaqgvZTgTQePdIM7tk2js7Ht.VBhuiuLPaJs2hPaIu"], ["created_at", "2019-12-06 02:06:10.230823"], ["updated_at", "2019-12-06 02:06:10.230823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.233016"], ["updated_at", "2019-12-06 02:06:10.233016"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1018], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1180], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1180], ["room_id", 1018], ["created_at", "2019-12-06 02:06:10.237848"], ["updated_at", "2019-12-06 02:06:10.237848"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1018"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1018], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1018')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 102ms (Views: 71.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Dn4xanHBr0mc9U9lH9UEC.iM9wHZ1jBfXQl3K4CUukSU/qPaNF.Hi"], ["created_at", "2019-12-06 02:06:10.811114"], ["updated_at", "2019-12-06 02:06:10.811114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.813107"], ["updated_at", "2019-12-06 02:06:10.813107"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:06:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:10.828679"], ["last_sign_in_at", "2019-12-06 02:06:10.828679"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:10.829308"], ["id", 1181]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1019"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1019], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1181], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1181], ["room_id", 1019], ["created_at", "2019-12-06 02:06:10.845684"], ["updated_at", "2019-12-06 02:06:10.845684"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1019], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VYaHbCjyZPiODdhcxZKLfOvmZYJt6SYj4nuhV98QLEAETSY6YiGo6"], ["created_at", "2019-12-06 02:06:10.854368"], ["updated_at", "2019-12-06 02:06:10.854368"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.856596"], ["updated_at", "2019-12-06 02:06:10.856596"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:06:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:10.858892"], ["last_sign_in_at", "2019-12-06 02:06:10.858892"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:10.859590"], ["id", 1182]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1020"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1020], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1182], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1182], ["room_id", 1020], ["created_at", "2019-12-06 02:06:10.864629"], ["updated_at", "2019-12-06 02:06:10.864629"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$26EXq9jN8hlNwv5oLmqIvOL/JG8PH8MKMJVooh6Rag.4OrTSesbm6"], ["created_at", "2019-12-06 02:06:10.874509"], ["updated_at", "2019-12-06 02:06:10.874509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.877032"], ["updated_at", "2019-12-06 02:06:10.877032"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:06:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:10.880083"], ["last_sign_in_at", "2019-12-06 02:06:10.880083"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:10.880684"], ["id", 1183]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1021"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1021], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$h3LqGRWzfK4Qoe5ACo1qP.h//SvjsCCc1nQhOxXebbNU5Xurl.hoi"], ["created_at", "2019-12-06 02:06:10.890519"], ["updated_at", "2019-12-06 02:06:10.890519"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.892814"], ["updated_at", "2019-12-06 02:06:10.892814"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:06:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:10.895192"], ["last_sign_in_at", "2019-12-06 02:06:10.895192"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:10.895711"], ["id", 1184]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1022"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$c9slA73nhP1Hjaw2CCYSnuyNTulZBdNtJivb6Yp1sSeA1L0p..TSe"], ["created_at", "2019-12-06 02:06:10.906075"], ["updated_at", "2019-12-06 02:06:10.906075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:10.908719"], ["updated_at", "2019-12-06 02:06:10.908719"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1023], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1185], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1185], ["room_id", 1023], ["created_at", "2019-12-06 02:06:10.913781"], ["updated_at", "2019-12-06 02:06:10.913781"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1023” for 127.0.0.1 at 2019-12-05 23:06:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:10.916182"], ["last_sign_in_at", "2019-12-06 02:06:10.916182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:10.916717"], ["id", 1185]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1023"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1023], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1023')
Rendered appointments/show.html.erb within layouts/application (20.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 387ms (Views: 370.1ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dEcp2CZF7qG31Zs/aRZlt.v1ul9exwaZWonGSZ/zbr9w3WERaxeBG"], ["created_at", "2019-12-06 02:06:11.313957"], ["updated_at", "2019-12-06 02:06:11.313957"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.316189"], ["updated_at", "2019-12-06 02:06:11.316189"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1024], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1186], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1186], ["room_id", 1024], ["created_at", "2019-12-06 02:06:11.321656"], ["updated_at", "2019-12-06 02:06:11.321656"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1024], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1186], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1186], ["room_id", 1024], ["created_at", "2019-12-06 02:06:11.325592"], ["updated_at", "2019-12-06 02:06:11.325592"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.327938"], ["last_sign_in_at", "2019-12-06 02:06:11.327938"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.328477"], ["id", 1186]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1186]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/fxR0ZPEM6.u3t/MXngQW.uyKiVNXjN01A7pvUfT7k3jG3xAxxU62"], ["created_at", "2019-12-06 02:06:11.372407"], ["updated_at", "2019-12-06 02:06:11.372407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.374725"], ["updated_at", "2019-12-06 02:06:11.374725"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1025], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1187], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1187], ["room_id", 1025], ["created_at", "2019-12-06 02:06:11.378672"], ["updated_at", "2019-12-06 02:06:11.378672"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1025], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1187], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1187], ["room_id", 1025], ["created_at", "2019-12-06 02:06:11.382667"], ["updated_at", "2019-12-06 02:06:11.382667"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.385562"], ["last_sign_in_at", "2019-12-06 02:06:11.385562"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.386159"], ["id", 1187]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1187]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yy8oG5Mn8oOZKa21izgB4.mPFejhv2yEm4vDLEGD8amN/fq/KPXRW"], ["created_at", "2019-12-06 02:06:11.399663"], ["updated_at", "2019-12-06 02:06:11.399663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.402481"], ["updated_at", "2019-12-06 02:06:11.402481"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1026], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1188], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1188], ["room_id", 1026], ["created_at", "2019-12-06 02:06:11.407081"], ["updated_at", "2019-12-06 02:06:11.407081"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/529” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.409395"], ["last_sign_in_at", "2019-12-06 02:06:11.409395"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.409895"], ["id", 1188]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"529"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 529], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 529]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zni71m4NL8qKNki6ChERmO9M5GkSALddr.HKhKKAiP56SQtq80Gjq"], ["created_at", "2019-12-06 02:06:11.424110"], ["updated_at", "2019-12-06 02:06:11.424110"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.426498"], ["last_sign_in_at", "2019-12-06 02:06:11.426498"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.426982"], ["id", 1189]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hilJ50QVk0MD9StOWPcPWeWq4xRpBPjnjtFpuITQUReAEtioq1.s2"], ["created_at", "2019-12-06 02:06:11.472398"], ["updated_at", "2019-12-06 02:06:11.472398"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.474546"], ["updated_at", "2019-12-06 02:06:11.474546"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1027], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1190], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1190], ["room_id", 1027], ["created_at", "2019-12-06 02:06:11.478746"], ["updated_at", "2019-12-06 02:06:11.478746"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1027], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1190], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1190], ["room_id", 1027], ["created_at", "2019-12-06 02:06:11.482756"], ["updated_at", "2019-12-06 02:06:11.482756"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.486217"], ["last_sign_in_at", "2019-12-06 02:06:11.486217"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.487419"], ["id", 1190]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1027], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1190], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1190], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kfbEY54pUfuKRNDiApobU.38YybKCtmlzwxYetSq5f5W1jMm8sXrC"], ["created_at", "2019-12-06 02:06:11.502447"], ["updated_at", "2019-12-06 02:06:11.502447"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.504713"], ["updated_at", "2019-12-06 02:06:11.504713"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1028], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1191], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1191], ["room_id", 1028], ["created_at", "2019-12-06 02:06:11.508562"], ["updated_at", "2019-12-06 02:06:11.508562"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1028], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1191], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1191], ["room_id", 1028], ["created_at", "2019-12-06 02:06:11.512391"], ["updated_at", "2019-12-06 02:06:11.512391"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.514679"], ["last_sign_in_at", "2019-12-06 02:06:11.514679"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.515228"], ["id", 1191]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1028], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1191], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1191], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JlwmPSfPnMVISOqbnIIUs.Va9t5TJigUDjdRTh7AftyIBfSxCwAga"], ["created_at", "2019-12-06 02:06:11.529834"], ["updated_at", "2019-12-06 02:06:11.529834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.532149"], ["updated_at", "2019-12-06 02:06:11.532149"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1029], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1192], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1192], ["room_id", 1029], ["created_at", "2019-12-06 02:06:11.537121"], ["updated_at", "2019-12-06 02:06:11.537121"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1029], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1192], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1192], ["room_id", 1029], ["created_at", "2019-12-06 02:06:11.541587"], ["updated_at", "2019-12-06 02:06:11.541587"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.543958"], ["last_sign_in_at", "2019-12-06 02:06:11.543958"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.544486"], ["id", 1192]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B913I566foy9hnPnaTouUeRHiVe./Mof6lBg7owGkQIYYNOv5t50O"], ["created_at", "2019-12-06 02:06:11.556023"], ["updated_at", "2019-12-06 02:06:11.556023"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.558212"], ["updated_at", "2019-12-06 02:06:11.558212"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1030], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1193], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1193], ["room_id", 1030], ["created_at", "2019-12-06 02:06:11.562048"], ["updated_at", "2019-12-06 02:06:11.562048"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1030], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1193], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1193], ["room_id", 1030], ["created_at", "2019-12-06 02:06:11.565961"], ["updated_at", "2019-12-06 02:06:11.565961"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.568648"], ["last_sign_in_at", "2019-12-06 02:06:11.568648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.569263"], ["id", 1193]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bpmIPeLm40VWnpSCvvSfFOxn6IdmGAqDkLdSTYYMAekKrnIxFl5mG"], ["created_at", "2019-12-06 02:06:11.583388"], ["updated_at", "2019-12-06 02:06:11.583388"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.586441"], ["last_sign_in_at", "2019-12-06 02:06:11.586441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.587025"], ["id", 1194]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 62ms (Views: 46.3ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Vv/JB5jccxzOul7voQ/pAukLqqJ8bb.GFPIOe0aORiLBmmRo5hBdO"], ["created_at", "2019-12-06 02:06:11.660747"], ["updated_at", "2019-12-06 02:06:11.660747"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.663029"], ["last_sign_in_at", "2019-12-06 02:06:11.663029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.663520"], ["id", 1195]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v2Hm3tXK.XN2Av6Xbq83xubp2WLWHG.dSlZeRi6AznOcwVlEn24EO"], ["created_at", "2019-12-06 02:06:11.675477"], ["updated_at", "2019-12-06 02:06:11.675477"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.677907"], ["last_sign_in_at", "2019-12-06 02:06:11.677907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.678390"], ["id", 1196]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N2fAHmuvj15ZpLIpla/2jeaZ/WQWyk5ljZycc1OaqDBkm7P11cfsK"], ["created_at", "2019-12-06 02:06:11.705645"], ["updated_at", "2019-12-06 02:06:11.705645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.708017"], ["last_sign_in_at", "2019-12-06 02:06:11.708017"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.708510"], ["id", 1197]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4vg6nsL8ariNBV5Y4w.AIOGTzWuNRb7vIynG4x/tZB/9OrvvdOqoG"], ["created_at", "2019-12-06 02:06:11.729390"], ["updated_at", "2019-12-06 02:06:11.729390"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.731614"], ["updated_at", "2019-12-06 02:06:11.731614"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1031” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.733554"], ["last_sign_in_at", "2019-12-06 02:06:11.733554"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.734193"], ["id", 1198]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1031"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1031], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LzQOga.Stguq/Nf0/w1Uc.Ud30ykW/BAUGsdEEO9GhSV0Q0Cp8Tjy"], ["created_at", "2019-12-06 02:06:11.761525"], ["updated_at", "2019-12-06 02:06:11.761525"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.763798"], ["updated_at", "2019-12-06 02:06:11.763798"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1032” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.766041"], ["last_sign_in_at", "2019-12-06 02:06:11.766041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.766728"], ["id", 1199]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1032"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1032], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.777294"], ["updated_at", "2019-12-06 02:06:11.777294"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1033” for 127.0.0.1 at 2019-12-05 23:06:11 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1033"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UDf/LB1ZMMyaP3sYEmkGmegbo4tF8oxySzH7OvNI2G.2flln3eEvO"], ["created_at", "2019-12-06 02:06:11.788716"], ["updated_at", "2019-12-06 02:06:11.788716"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.790945"], ["updated_at", "2019-12-06 02:06:11.790945"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1034/edit” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.792985"], ["last_sign_in_at", "2019-12-06 02:06:11.792985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.793484"], ["id", 1200]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1034"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1034], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gDq2GXkD2nqpOwU/ZdDise2qhEOC1e0glxsg.E9bP0reiaVNn8i/u"], ["created_at", "2019-12-06 02:06:11.821823"], ["updated_at", "2019-12-06 02:06:11.821823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.824070"], ["updated_at", "2019-12-06 02:06:11.824070"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1035/edit” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.826595"], ["last_sign_in_at", "2019-12-06 02:06:11.826595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.827340"], ["id", 1201]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1035"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1035], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.845627"], ["updated_at", "2019-12-06 02:06:11.845627"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1036” for 127.0.0.1 at 2019-12-05 23:06:11 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1036"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3pMZZVPnzTDpuRQ4kciQyuRy1/Yb9C/.Mf4XWegqU9ADeA3eqjKMy"], ["created_at", "2019-12-06 02:06:11.858068"], ["updated_at", "2019-12-06 02:06:11.858068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.860708"], ["last_sign_in_at", "2019-12-06 02:06:11.860708"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.861233"], ["id", 1202]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.864861"], ["updated_at", "2019-12-06 02:06:11.864861"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6kXiXhbycsvc5m6wDVf38.X0CBbX1T2j09PDlaVK086zIcFyP4YyS"], ["created_at", "2019-12-06 02:06:11.872990"], ["updated_at", "2019-12-06 02:06:11.872990"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.875548"], ["last_sign_in_at", "2019-12-06 02:06:11.875548"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.876028"], ["id", 1203]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.879115"], ["updated_at", "2019-12-06 02:06:11.879115"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LqjNQGwFE96jGJEW8SANyegNP9U3H/IQ8hwe0ZB811I4ykRdW1S5K"], ["created_at", "2019-12-06 02:06:11.887578"], ["updated_at", "2019-12-06 02:06:11.887578"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.890109"], ["last_sign_in_at", "2019-12-06 02:06:11.890109"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.890591"], ["id", 1204]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yV0yScn9Q1KuZpSpLyq.ye0BFb2FEcnN7NDjlksRtkuOzqCmHHf3u"], ["created_at", "2019-12-06 02:06:11.902343"], ["updated_at", "2019-12-06 02:06:11.902343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.904954"], ["last_sign_in_at", "2019-12-06 02:06:11.904954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.905597"], ["id", 1205]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wt2X4kYqcfHwM1.y6FRoSuVqzxsHoEEyLGmhQCSUSWbX7UpHsGe2q"], ["created_at", "2019-12-06 02:06:11.918174"], ["updated_at", "2019-12-06 02:06:11.918174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.921028"], ["last_sign_in_at", "2019-12-06 02:06:11.921028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.921955"], ["id", 1206]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P3omOAHegfOcjVTQmgTqs.KEo7llem6jagQ.oj5YUqn/4MC1rRkIS"], ["created_at", "2019-12-06 02:06:11.933917"], ["updated_at", "2019-12-06 02:06:11.933917"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.936720"], ["updated_at", "2019-12-06 02:06:11.936720"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1039” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.939233"], ["last_sign_in_at", "2019-12-06 02:06:11.939233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.939774"], ["id", 1207]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1039"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1039], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:06:11.943834"], ["id", 1039]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1039 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AKo0HX01jXIdk51KPUNfXeWnBa6FpiH4JRSYmZouyYeaR3AA49lkG"], ["created_at", "2019-12-06 02:06:11.953047"], ["updated_at", "2019-12-06 02:06:11.953047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.955491"], ["updated_at", "2019-12-06 02:06:11.955491"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1040” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.958416"], ["last_sign_in_at", "2019-12-06 02:06:11.958416"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.959009"], ["id", 1208]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1040"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1040], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:06:11.962955"], ["id", 1040]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1040 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ydyDZ9FgdYgvPMBKAadXZ.KPyJMQ1gBqCxqE97zu.bxv16z21q2kK"], ["created_at", "2019-12-06 02:06:11.972133"], ["updated_at", "2019-12-06 02:06:11.972133"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.974316"], ["updated_at", "2019-12-06 02:06:11.974316"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1041” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.976870"], ["last_sign_in_at", "2019-12-06 02:06:11.976870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.977457"], ["id", 1209]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1041"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1041], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TJFhSioiIRkTzgpbsNFRXemoFWaiXACqAre9Jg6fAyCshwKxtihP."], ["created_at", "2019-12-06 02:06:11.991552"], ["updated_at", "2019-12-06 02:06:11.991552"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:11.993750"], ["updated_at", "2019-12-06 02:06:11.993750"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1042” for 127.0.0.1 at 2019-12-05 23:06:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:11.995946"], ["last_sign_in_at", "2019-12-06 02:06:11.995946"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:11.996431"], ["id", 1210]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1042"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1042], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ND.3ulZhLs1RZqMRRJ6NBORx2sTWquiEoHFZl34OyDHxkTeLeoZme"], ["created_at", "2019-12-06 02:06:12.011563"], ["updated_at", "2019-12-06 02:06:12.011563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:06:12 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:12.014095"], ["last_sign_in_at", "2019-12-06 02:06:12.014095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:12.014612"], ["id", 1211]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kla3D5IGvLMrWzYOJqQiZOEGI/HUExvAGWE82uK9GSdGA96S4pPRO"], ["created_at", "2019-12-06 02:06:12.025308"], ["updated_at", "2019-12-06 02:06:12.025308"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:12.028498"], ["updated_at", "2019-12-06 02:06:12.028498"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1043” for 127.0.0.1 at 2019-12-05 23:06:12 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:12.030503"], ["last_sign_in_at", "2019-12-06 02:06:12.030503"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:12.031019"], ["id", 1212]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1043"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1043], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1043]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7xKZ0f2jZ/9VRikMhxVhxOmlMfHOrtDg0djHklGo2xRjK0/2MmGD."], ["created_at", "2019-12-06 02:06:12.042508"], ["updated_at", "2019-12-06 02:06:12.042508"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:12.044823"], ["updated_at", "2019-12-06 02:06:12.044823"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1044” for 127.0.0.1 at 2019-12-05 23:06:12 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:12.046695"], ["last_sign_in_at", "2019-12-06 02:06:12.046695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:12.047323"], ["id", 1213]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1044"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1044], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1044]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9Xf7F3znjnuLBXM3Oc0l2uQm5njCpqTaVaxndeIQYQrmQB6zP1Nzy"], ["created_at", "2019-12-06 02:06:12.059046"], ["updated_at", "2019-12-06 02:06:12.059046"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:12.061330"], ["updated_at", "2019-12-06 02:06:12.061330"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1045” for 127.0.0.1 at 2019-12-05 23:06:12 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:12.063249"], ["last_sign_in_at", "2019-12-06 02:06:12.063249"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:12.063751"], ["id", 1214]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1045"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UVaq/t6UhkVXyP4vOGOBCu02WAPD9uoX77qMx7reLyRId8P3Skowm"], ["created_at", "2019-12-06 02:06:12.073425"], ["updated_at", "2019-12-06 02:06:12.073425"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:06:12.075605"], ["updated_at", "2019-12-06 02:06:12.075605"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1046” for 127.0.0.1 at 2019-12-05 23:06:12 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:06:12.077455"], ["last_sign_in_at", "2019-12-06 02:06:12.077455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:06:12.077931"], ["id", 1215]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1046"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5G7U.z8oQxPgi00vaA0LdeERY5kO9vJkrAzZhI0svuj47paqfMdBm"], ["created_at", "2019-12-06 02:08:32.959774"], ["updated_at", "2019-12-06 02:08:32.959774"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:32.968520"], ["updated_at", "2019-12-06 02:08:32.968520"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1047"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1047], ["LIMIT", 1]]
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1047')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 150ms (Views: 107.5ms | ActiveRecord: 2.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pz353Qg2yrEt4eI0pY4fHuGhmxACvN6ftA9hBugUNCSrN0r4FP0kS"], ["created_at", "2019-12-06 02:08:33.129714"], ["updated_at", "2019-12-06 02:08:33.129714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.131929"], ["updated_at", "2019-12-06 02:08:33.131929"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1048], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1217], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1217], ["room_id", 1048], ["created_at", "2019-12-06 02:08:33.169259"], ["updated_at", "2019-12-06 02:08:33.169259"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1048"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1048], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1048')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gNxm5TSoUJUK70tZaOwU8.tLfJo72buLjWHu8VdmhmkWiW3dipgMC"], ["created_at", "2019-12-06 02:08:33.217869"], ["updated_at", "2019-12-06 02:08:33.217869"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.220100"], ["updated_at", "2019-12-06 02:08:33.220100"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1049], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1218], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1218], ["room_id", 1049], ["created_at", "2019-12-06 02:08:33.224774"], ["updated_at", "2019-12-06 02:08:33.224774"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1049"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1049], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1049')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YjVG2vWaMRFX0KZiuck7pucgn3DbIdVFrXWfaTSj2wGbSyXC8Eg9S"], ["created_at", "2019-12-06 02:08:33.241688"], ["updated_at", "2019-12-06 02:08:33.241688"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.243709"], ["updated_at", "2019-12-06 02:08:33.243709"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1050], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1219], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1219], ["room_id", 1050], ["created_at", "2019-12-06 02:08:33.248050"], ["updated_at", "2019-12-06 02:08:33.248050"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1050"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1050], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1050')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$H0ASaDRDG2IWdQb.e5qJhO2K5hOZw0YX9/rPURKWSnBhI.4/KSTCO"], ["created_at", "2019-12-06 02:08:33.268082"], ["updated_at", "2019-12-06 02:08:33.268082"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.270438"], ["updated_at", "2019-12-06 02:08:33.270438"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1051], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1220], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1220], ["room_id", 1051], ["created_at", "2019-12-06 02:08:33.275940"], ["updated_at", "2019-12-06 02:08:33.275940"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1051"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1051], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1051')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 104ms (Views: 72.7ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$v2cvAETvpEhilHmnpY1zKeDy5yF7vydkKzl5MaQSe7fqqnS9w7Pmi"], ["created_at", "2019-12-06 02:08:33.852995"], ["updated_at", "2019-12-06 02:08:33.852995"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.855077"], ["updated_at", "2019-12-06 02:08:33.855077"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:08:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:33.870560"], ["last_sign_in_at", "2019-12-06 02:08:33.870560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:33.871157"], ["id", 1221]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1052"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1052], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1221], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1221], ["room_id", 1052], ["created_at", "2019-12-06 02:08:33.887583"], ["updated_at", "2019-12-06 02:08:33.887583"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1052], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sgi9mcdZekNqd/rbQgWNre8sKlnPTgfV10FBdvFpdO5hSsOzfJ88m"], ["created_at", "2019-12-06 02:08:33.896289"], ["updated_at", "2019-12-06 02:08:33.896289"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.898248"], ["updated_at", "2019-12-06 02:08:33.898248"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:08:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:33.900389"], ["last_sign_in_at", "2019-12-06 02:08:33.900389"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:33.900843"], ["id", 1222]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1053"}
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1053], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1222], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1222], ["room_id", 1053], ["created_at", "2019-12-06 02:08:33.906574"], ["updated_at", "2019-12-06 02:08:33.906574"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gtCnWE5nQzji.9eRCqMX8.cb1LDJ9BO4PJ9Fxof/3uzkibXi9wYGu"], ["created_at", "2019-12-06 02:08:33.915679"], ["updated_at", "2019-12-06 02:08:33.915679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.917675"], ["updated_at", "2019-12-06 02:08:33.917675"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:08:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:33.920046"], ["last_sign_in_at", "2019-12-06 02:08:33.920046"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:33.920622"], ["id", 1223]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1054"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1054], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DkFlNWojJ2yzFSwgjpmT5.KYWxwMiFH7sLwCDBf0cddFNnf5PNJkq"], ["created_at", "2019-12-06 02:08:33.929194"], ["updated_at", "2019-12-06 02:08:33.929194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.931761"], ["updated_at", "2019-12-06 02:08:33.931761"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:08:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:33.933862"], ["last_sign_in_at", "2019-12-06 02:08:33.933862"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:33.934401"], ["id", 1224]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1055"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FXg9sHoxitP5u1cqBnR2NuOPGhNUjtRXJVfp/Hxl0LJOhy9GOee02"], ["created_at", "2019-12-06 02:08:33.944759"], ["updated_at", "2019-12-06 02:08:33.944759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:33.946780"], ["updated_at", "2019-12-06 02:08:33.946780"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1056], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1225], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1225], ["room_id", 1056], ["created_at", "2019-12-06 02:08:33.950635"], ["updated_at", "2019-12-06 02:08:33.950635"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1056” for 127.0.0.1 at 2019-12-05 23:08:33 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:33.952963"], ["last_sign_in_at", "2019-12-06 02:08:33.952963"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:33.953460"], ["id", 1225]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1056"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1056], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1056')
Rendered appointments/show.html.erb within layouts/application (20.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 386ms (Views: 369.3ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uIQBukkZcFdrty0/LmuNHOoS9FK32BEJf57NINfmZvDZqnBqZ5.ga"], ["created_at", "2019-12-06 02:08:34.349717"], ["updated_at", "2019-12-06 02:08:34.349717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.351874"], ["updated_at", "2019-12-06 02:08:34.351874"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1057], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1226], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1226], ["room_id", 1057], ["created_at", "2019-12-06 02:08:34.356541"], ["updated_at", "2019-12-06 02:08:34.356541"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1057], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1226], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1226], ["room_id", 1057], ["created_at", "2019-12-06 02:08:34.360527"], ["updated_at", "2019-12-06 02:08:34.360527"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.362824"], ["last_sign_in_at", "2019-12-06 02:08:34.362824"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.363354"], ["id", 1226]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1226]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 36ms (Views: 4.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$C6YL8Cufid2L2WC4Y2xNfuH.Vgzzy39DmOcV7ETJGTXoeCPKw2YZ2"], ["created_at", "2019-12-06 02:08:34.407905"], ["updated_at", "2019-12-06 02:08:34.407905"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.410186"], ["updated_at", "2019-12-06 02:08:34.410186"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1058], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1227], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1227], ["room_id", 1058], ["created_at", "2019-12-06 02:08:34.414259"], ["updated_at", "2019-12-06 02:08:34.414259"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1058], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1227], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1227], ["room_id", 1058], ["created_at", "2019-12-06 02:08:34.418023"], ["updated_at", "2019-12-06 02:08:34.418023"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.420340"], ["last_sign_in_at", "2019-12-06 02:08:34.420340"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.420853"], ["id", 1227]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1227]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hvXlJNeUNnqLBA38b/2u1ONKFw5J80QFs9/g5chffvDaG5YSfDYaS"], ["created_at", "2019-12-06 02:08:34.434438"], ["updated_at", "2019-12-06 02:08:34.434438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.436682"], ["updated_at", "2019-12-06 02:08:34.436682"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1059], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1228], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1228], ["room_id", 1059], ["created_at", "2019-12-06 02:08:34.441420"], ["updated_at", "2019-12-06 02:08:34.441420"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/549” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.443575"], ["last_sign_in_at", "2019-12-06 02:08:34.443575"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.444070"], ["id", 1228]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"549"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 549], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 549]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UHwhcdxWf7b/SKOjri2d9e.V0cz4xq1AE.zwVGeQWXV6rQ32QQure"], ["created_at", "2019-12-06 02:08:34.457925"], ["updated_at", "2019-12-06 02:08:34.457925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.460256"], ["last_sign_in_at", "2019-12-06 02:08:34.460256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.460729"], ["id", 1229]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 35ms (Views: 18.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C9DtU8tgnCY2hXw/jcZTHeig6nGLRRHLHYad7.ffL2TSa/fSeS2HG"], ["created_at", "2019-12-06 02:08:34.505483"], ["updated_at", "2019-12-06 02:08:34.505483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.508008"], ["updated_at", "2019-12-06 02:08:34.508008"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1060], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1230], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1230], ["room_id", 1060], ["created_at", "2019-12-06 02:08:34.512991"], ["updated_at", "2019-12-06 02:08:34.512991"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1060], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1230], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1230], ["room_id", 1060], ["created_at", "2019-12-06 02:08:34.516880"], ["updated_at", "2019-12-06 02:08:34.516880"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.519172"], ["last_sign_in_at", "2019-12-06 02:08:34.519172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.519675"], ["id", 1230]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1060], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1230], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1230], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$goXxAHXCnyJQ7fQqJnM1z.4bmugAnlxqBA2fJ.1IeikMKZVB6n.AO"], ["created_at", "2019-12-06 02:08:34.533296"], ["updated_at", "2019-12-06 02:08:34.533296"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.535563"], ["updated_at", "2019-12-06 02:08:34.535563"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1061], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1231], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1231], ["room_id", 1061], ["created_at", "2019-12-06 02:08:34.540052"], ["updated_at", "2019-12-06 02:08:34.540052"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1061], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1231], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1231], ["room_id", 1061], ["created_at", "2019-12-06 02:08:34.544041"], ["updated_at", "2019-12-06 02:08:34.544041"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.546368"], ["last_sign_in_at", "2019-12-06 02:08:34.546368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.546869"], ["id", 1231]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1061], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1231], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1231], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m4uKpmTcl.S/Atl/1lIdneHsUm7JzKvnS3zZcsjKfXtvD28IgJLu6"], ["created_at", "2019-12-06 02:08:34.561723"], ["updated_at", "2019-12-06 02:08:34.561723"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.563948"], ["updated_at", "2019-12-06 02:08:34.563948"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1062], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1232], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1232], ["room_id", 1062], ["created_at", "2019-12-06 02:08:34.568256"], ["updated_at", "2019-12-06 02:08:34.568256"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1062], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1232], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1232], ["room_id", 1062], ["created_at", "2019-12-06 02:08:34.573001"], ["updated_at", "2019-12-06 02:08:34.573001"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.576037"], ["last_sign_in_at", "2019-12-06 02:08:34.576037"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.576607"], ["id", 1232]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QXVyToapjzpznNltWhLOuOVAx9L3FzZ7I9BdYQtZj5zWH42Lue/Sm"], ["created_at", "2019-12-06 02:08:34.588342"], ["updated_at", "2019-12-06 02:08:34.588342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.590994"], ["updated_at", "2019-12-06 02:08:34.590994"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1063], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1233], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1233], ["room_id", 1063], ["created_at", "2019-12-06 02:08:34.595038"], ["updated_at", "2019-12-06 02:08:34.595038"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1063], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1233], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1233], ["room_id", 1063], ["created_at", "2019-12-06 02:08:34.598826"], ["updated_at", "2019-12-06 02:08:34.598826"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.601068"], ["last_sign_in_at", "2019-12-06 02:08:34.601068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.601615"], ["id", 1233]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lszByer2RfijfDofyvyEx.GRqZhPoOwhpH5rKmOgMQ9vKTPzoNAJ6"], ["created_at", "2019-12-06 02:08:34.615543"], ["updated_at", "2019-12-06 02:08:34.615543"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.618134"], ["last_sign_in_at", "2019-12-06 02:08:34.618134"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.618816"], ["id", 1234]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 62ms (Views: 46.2ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QI8sRLwzmscutO5TllDB2.qcmO89elCIBXoexy3pEzpCeOWBVSX5i"], ["created_at", "2019-12-06 02:08:34.693224"], ["updated_at", "2019-12-06 02:08:34.693224"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.695466"], ["last_sign_in_at", "2019-12-06 02:08:34.695466"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.695950"], ["id", 1235]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fKcAsIPwpydL0yUZPEB/sObXG9zRuM3CqF1oYAOmM1Cs3Dfxo3yq."], ["created_at", "2019-12-06 02:08:34.707057"], ["updated_at", "2019-12-06 02:08:34.707057"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.709604"], ["last_sign_in_at", "2019-12-06 02:08:34.709604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.710114"], ["id", 1236]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.1ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.FAFTO8/RfuFj/EelEm2MuFjI/2o907b8DGoTXmH6kET8O/CeZAB."], ["created_at", "2019-12-06 02:08:34.737560"], ["updated_at", "2019-12-06 02:08:34.737560"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.740441"], ["last_sign_in_at", "2019-12-06 02:08:34.740441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.740950"], ["id", 1237]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d5JfkU/M6Kz7V2tRktqWRO4G2R2h7tAGORZEN7LM/zrMMRHZ.Y87S"], ["created_at", "2019-12-06 02:08:34.760865"], ["updated_at", "2019-12-06 02:08:34.760865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.763400"], ["updated_at", "2019-12-06 02:08:34.763400"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1064” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.765331"], ["last_sign_in_at", "2019-12-06 02:08:34.765331"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.765782"], ["id", 1238]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1064"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1064], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dsKJHCbkDwMwCLJ40Nyv8.oBZmM0SI9Q1iomAuztZHb6n5tt5wda."], ["created_at", "2019-12-06 02:08:34.792276"], ["updated_at", "2019-12-06 02:08:34.792276"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.794429"], ["updated_at", "2019-12-06 02:08:34.794429"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1065” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.796357"], ["last_sign_in_at", "2019-12-06 02:08:34.796357"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.797034"], ["id", 1239]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1065"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1065], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.806581"], ["updated_at", "2019-12-06 02:08:34.806581"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1066” for 127.0.0.1 at 2019-12-05 23:08:34 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1066"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GztphIAhJfDGJ3YDarhwUeB1uQTaPAX3MfkCpEmqD6tP2aTBike7O"], ["created_at", "2019-12-06 02:08:34.817982"], ["updated_at", "2019-12-06 02:08:34.817982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.820334"], ["updated_at", "2019-12-06 02:08:34.820334"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1067/edit” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.822773"], ["last_sign_in_at", "2019-12-06 02:08:34.822773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.823431"], ["id", 1240]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1067"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1067], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aoN4uDvWhDlXu83B/smKe.MY8W7RnCHKGEz7pnu3OKkh02.YqP1yu"], ["created_at", "2019-12-06 02:08:34.852622"], ["updated_at", "2019-12-06 02:08:34.852622"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.855039"], ["updated_at", "2019-12-06 02:08:34.855039"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1068/edit” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.857813"], ["last_sign_in_at", "2019-12-06 02:08:34.857813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.858574"], ["id", 1241]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1068"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1068], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (8.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.877027"], ["updated_at", "2019-12-06 02:08:34.877027"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1069” for 127.0.0.1 at 2019-12-05 23:08:34 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1069"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yegqaOJJohKiJESlxG7EMee8bpS/p7kT7YuyFE9WgjIskMHTBv74e"], ["created_at", "2019-12-06 02:08:34.889605"], ["updated_at", "2019-12-06 02:08:34.889605"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.892325"], ["last_sign_in_at", "2019-12-06 02:08:34.892325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.893073"], ["id", 1242]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.896642"], ["updated_at", "2019-12-06 02:08:34.896642"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n3FOfgkNRTF6oqfzX6KNgOoaC5u1u/XsdLzGsgVJ9iVA/NvQiulvq"], ["created_at", "2019-12-06 02:08:34.905241"], ["updated_at", "2019-12-06 02:08:34.905241"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.908081"], ["last_sign_in_at", "2019-12-06 02:08:34.908081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.908584"], ["id", 1243]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.911692"], ["updated_at", "2019-12-06 02:08:34.911692"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C.W4jrCzCBnpJbm0ZcvjreOMqfo.2r3ioj/uBos.VxAlEC/U2j5Q2"], ["created_at", "2019-12-06 02:08:34.922084"], ["updated_at", "2019-12-06 02:08:34.922084"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.925173"], ["last_sign_in_at", "2019-12-06 02:08:34.925173"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.925761"], ["id", 1244]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vZLFx5QMrOKqVohnyNtt6eOaUPqk0y7oxIQ6SoAHjqC/w0wPUXCeW"], ["created_at", "2019-12-06 02:08:34.936343"], ["updated_at", "2019-12-06 02:08:34.936343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.939375"], ["last_sign_in_at", "2019-12-06 02:08:34.939375"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.939941"], ["id", 1245]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$727ZUIR9OSHNLZVEW03ZzOuueltjS6kigw/KmFRfO6ODJTm0J3tzi"], ["created_at", "2019-12-06 02:08:34.950326"], ["updated_at", "2019-12-06 02:08:34.950326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.952644"], ["last_sign_in_at", "2019-12-06 02:08:34.952644"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.953132"], ["id", 1246]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lpmv7v2Nh8xp8qxXZ4hR.e91iE7JdzN9Ghe0n9MzGHZwXZ73dulSi"], ["created_at", "2019-12-06 02:08:34.964048"], ["updated_at", "2019-12-06 02:08:34.964048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.966436"], ["updated_at", "2019-12-06 02:08:34.966436"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1072” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.968675"], ["last_sign_in_at", "2019-12-06 02:08:34.968675"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.969091"], ["id", 1247]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1072"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1072], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:08:34.972860"], ["id", 1072]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1072 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/TGnLZnZzV7rZFlafKoAe.5eTTMZURI6QUmk1Hxu8g7iwM2dFAoF6"], ["created_at", "2019-12-06 02:08:34.980711"], ["updated_at", "2019-12-06 02:08:34.980711"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:34.982986"], ["updated_at", "2019-12-06 02:08:34.982986"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1073” for 127.0.0.1 at 2019-12-05 23:08:34 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:34.985101"], ["last_sign_in_at", "2019-12-06 02:08:34.985101"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:34.985769"], ["id", 1248]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1073"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1073], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:08:34.989618"], ["id", 1073]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1073 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2w959fgiyd5ctIRBJZDjz.bQtwPikmKCGTwFadU9q9UrDuoezhvtS"], ["created_at", "2019-12-06 02:08:34.998472"], ["updated_at", "2019-12-06 02:08:34.998472"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.000807"], ["updated_at", "2019-12-06 02:08:35.000807"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1074” for 127.0.0.1 at 2019-12-05 23:08:35 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.003089"], ["last_sign_in_at", "2019-12-06 02:08:35.003089"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.003600"], ["id", 1249]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1074"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1074], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CMVretK69kgRHH3KOoWyg.WUy4mHdkwKzKz1/oZvaq1/UrxMJm4HW"], ["created_at", "2019-12-06 02:08:35.017889"], ["updated_at", "2019-12-06 02:08:35.017889"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.020118"], ["updated_at", "2019-12-06 02:08:35.020118"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1075” for 127.0.0.1 at 2019-12-05 23:08:35 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.022661"], ["last_sign_in_at", "2019-12-06 02:08:35.022661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.023483"], ["id", 1250]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1075"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1075], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2vJ0HKlrphq3Wom1C/eDL.G4EPWpkvLu4XzsIJEImtCQesh4.ApRS"], ["created_at", "2019-12-06 02:08:35.037739"], ["updated_at", "2019-12-06 02:08:35.037739"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:08:35 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.040674"], ["last_sign_in_at", "2019-12-06 02:08:35.040674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.041241"], ["id", 1251]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o9FlXofRthA8nw2Hgc62U.9lBchakiCQKnmw/y2wfdh0GOqbLL6XC"], ["created_at", "2019-12-06 02:08:35.052054"], ["updated_at", "2019-12-06 02:08:35.052054"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.054351"], ["updated_at", "2019-12-06 02:08:35.054351"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1076” for 127.0.0.1 at 2019-12-05 23:08:35 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.056527"], ["last_sign_in_at", "2019-12-06 02:08:35.056527"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.057059"], ["id", 1252]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1076"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1076], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1076]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JF8zlXNQ4/vvfz.PaEEuhOQnbdgryjo.neOUDiWQlQj/wmOPb.K.6"], ["created_at", "2019-12-06 02:08:35.068132"], ["updated_at", "2019-12-06 02:08:35.068132"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.070353"], ["updated_at", "2019-12-06 02:08:35.070353"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1077” for 127.0.0.1 at 2019-12-05 23:08:35 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.072468"], ["last_sign_in_at", "2019-12-06 02:08:35.072468"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.073116"], ["id", 1253]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1077"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1077], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1077]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$g0ashfn1P7Xi3WMOfvEfIuy0AtEhUWZ1JWmo/iHNQYLNY2lBWOrym"], ["created_at", "2019-12-06 02:08:35.084844"], ["updated_at", "2019-12-06 02:08:35.084844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.087102"], ["updated_at", "2019-12-06 02:08:35.087102"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1078” for 127.0.0.1 at 2019-12-05 23:08:35 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.089348"], ["last_sign_in_at", "2019-12-06 02:08:35.089348"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.089927"], ["id", 1254]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1078"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WeBuD.adPBvLwJBsk2IYn.dsj2rCqfUl9o21wTacoxIjJEN731HB6"], ["created_at", "2019-12-06 02:08:35.099048"], ["updated_at", "2019-12-06 02:08:35.099048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:08:35.101281"], ["updated_at", "2019-12-06 02:08:35.101281"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1079” for 127.0.0.1 at 2019-12-05 23:08:35 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:08:35.103147"], ["last_sign_in_at", "2019-12-06 02:08:35.103147"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:08:35.103628"], ["id", 1255]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1079"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (1.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zUSVkR4dH20/5FWEXKDMGuW06oHdmzlDBVzTJaUd3pgxMlHFXXtvS"], ["created_at", "2019-12-06 02:10:42.643367"], ["updated_at", "2019-12-06 02:10:42.643367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:42.651814"], ["updated_at", "2019-12-06 02:10:42.651814"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1080"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1080], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1080')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 157ms (Views: 111.3ms | ActiveRecord: 2.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$23kXb0Z2B5z3N/E.HDzUhuAAr1.eepNX5cDtxaLxbwAp3mthm989S"], ["created_at", "2019-12-06 02:10:42.818984"], ["updated_at", "2019-12-06 02:10:42.818984"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:42.821181"], ["updated_at", "2019-12-06 02:10:42.821181"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1081], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1257], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1257], ["room_id", 1081], ["created_at", "2019-12-06 02:10:42.858378"], ["updated_at", "2019-12-06 02:10:42.858378"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1081"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1081], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1081')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ec5eV5Vu4d61J5eojzrZEuzC5AoBinyljeWyC1XZGtTR4pHDlY0Ia"], ["created_at", "2019-12-06 02:10:42.873042"], ["updated_at", "2019-12-06 02:10:42.873042"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:42.875351"], ["updated_at", "2019-12-06 02:10:42.875351"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1082], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1258], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1258], ["room_id", 1082], ["created_at", "2019-12-06 02:10:42.880335"], ["updated_at", "2019-12-06 02:10:42.880335"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1082"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1082], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1082')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ninaSLFkC0GcINmXz48iNOIllVXNV9OtQMqDFypp5HSXiXnYib5GK"], ["created_at", "2019-12-06 02:10:42.926114"], ["updated_at", "2019-12-06 02:10:42.926114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:42.928662"], ["updated_at", "2019-12-06 02:10:42.928662"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1083], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1259], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1259], ["room_id", 1083], ["created_at", "2019-12-06 02:10:42.933503"], ["updated_at", "2019-12-06 02:10:42.933503"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1083"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1083], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1083')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wsNSlMeWX4teyOauKUmtFefuZPXjmzB.XzKBML18E6.LFJTHC8GBe"], ["created_at", "2019-12-06 02:10:42.953934"], ["updated_at", "2019-12-06 02:10:42.953934"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:42.956150"], ["updated_at", "2019-12-06 02:10:42.956150"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1084], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1260], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1260], ["room_id", 1084], ["created_at", "2019-12-06 02:10:42.960751"], ["updated_at", "2019-12-06 02:10:42.960751"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1084"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1084], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1084')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 102ms (Views: 72.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$REnLNMjy44hJpRDa/xNk/uMEQuvieBr0EAmqbMj8m8oVWTsXvQxVa"], ["created_at", "2019-12-06 02:10:43.532971"], ["updated_at", "2019-12-06 02:10:43.532971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:43.535205"], ["updated_at", "2019-12-06 02:10:43.535205"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:10:43 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:43.556809"], ["last_sign_in_at", "2019-12-06 02:10:43.556809"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:43.557473"], ["id", 1261]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1085"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1085], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1261], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1261], ["room_id", 1085], ["created_at", "2019-12-06 02:10:43.574274"], ["updated_at", "2019-12-06 02:10:43.574274"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1085], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$El6.MlnB19kHwZqz.3GleO4OHKxEbpYoMMjkASIBBI2/SSKOKxs3S"], ["created_at", "2019-12-06 02:10:43.584122"], ["updated_at", "2019-12-06 02:10:43.584122"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:43.586415"], ["updated_at", "2019-12-06 02:10:43.586415"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:10:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:43.588738"], ["last_sign_in_at", "2019-12-06 02:10:43.588738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:43.589338"], ["id", 1262]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1086"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1086], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1262], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1262], ["room_id", 1086], ["created_at", "2019-12-06 02:10:43.594758"], ["updated_at", "2019-12-06 02:10:43.594758"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$477b27d72pIlj5qvi9MJWOz9iui2u6ZA9j7e1IpaWW835xIlMLaFO"], ["created_at", "2019-12-06 02:10:43.603943"], ["updated_at", "2019-12-06 02:10:43.603943"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:43.606292"], ["updated_at", "2019-12-06 02:10:43.606292"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:10:43 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:43.609085"], ["last_sign_in_at", "2019-12-06 02:10:43.609085"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:43.609959"], ["id", 1263]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1087"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1087], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HQeY4eJ9Cc8HLdff3GqW3eH6SeJ6oUf2xzLUREF2Op04rvTzQMjz."], ["created_at", "2019-12-06 02:10:43.619737"], ["updated_at", "2019-12-06 02:10:43.619737"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:43.621941"], ["updated_at", "2019-12-06 02:10:43.621941"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:10:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:43.624213"], ["last_sign_in_at", "2019-12-06 02:10:43.624213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:43.624741"], ["id", 1264]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1088"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$X6BWlnolZWAAUmNaO4D5VOaI1u8SOi9A3MaNCmbrZa50vnNCxBKi6"], ["created_at", "2019-12-06 02:10:43.635455"], ["updated_at", "2019-12-06 02:10:43.635455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:43.637565"], ["updated_at", "2019-12-06 02:10:43.637565"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1089], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1265], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1265], ["room_id", 1089], ["created_at", "2019-12-06 02:10:43.642403"], ["updated_at", "2019-12-06 02:10:43.642403"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1089” for 127.0.0.1 at 2019-12-05 23:10:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:43.645071"], ["last_sign_in_at", "2019-12-06 02:10:43.645071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:43.645593"], ["id", 1265]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1089"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1089], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1089')
Rendered appointments/show.html.erb within layouts/application (20.5ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 387ms (Views: 370.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4jC7WA8SnUmNcVmCC0AjV.RPiLtajuIVBt0e2959Ju4AaNB.4tB1m"], ["created_at", "2019-12-06 02:10:44.043487"], ["updated_at", "2019-12-06 02:10:44.043487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.045851"], ["updated_at", "2019-12-06 02:10:44.045851"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1090], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1266], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1266], ["room_id", 1090], ["created_at", "2019-12-06 02:10:44.050512"], ["updated_at", "2019-12-06 02:10:44.050512"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1090], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1266], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1266], ["room_id", 1090], ["created_at", "2019-12-06 02:10:44.054484"], ["updated_at", "2019-12-06 02:10:44.054484"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.056753"], ["last_sign_in_at", "2019-12-06 02:10:44.056753"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.057204"], ["id", 1266]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1266]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 37ms (Views: 4.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IMRbqEKhl4DSHL.BZw4vjuPTOrgzm552MTDqyNDmPOyPN4a2mFCmy"], ["created_at", "2019-12-06 02:10:44.102471"], ["updated_at", "2019-12-06 02:10:44.102471"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.104660"], ["updated_at", "2019-12-06 02:10:44.104660"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1091], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1267], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1267], ["room_id", 1091], ["created_at", "2019-12-06 02:10:44.108807"], ["updated_at", "2019-12-06 02:10:44.108807"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1091], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1267], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1267], ["room_id", 1091], ["created_at", "2019-12-06 02:10:44.113188"], ["updated_at", "2019-12-06 02:10:44.113188"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.115549"], ["last_sign_in_at", "2019-12-06 02:10:44.115549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.116083"], ["id", 1267]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1267]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5S934qwxW64s0i3/HeFyOeddgLRh/bG1scjTqqTFJ5htm7r4TkfN6"], ["created_at", "2019-12-06 02:10:44.129406"], ["updated_at", "2019-12-06 02:10:44.129406"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.131643"], ["updated_at", "2019-12-06 02:10:44.131643"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1092], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1268], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1268], ["room_id", 1092], ["created_at", "2019-12-06 02:10:44.135752"], ["updated_at", "2019-12-06 02:10:44.135752"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/569” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.138594"], ["last_sign_in_at", "2019-12-06 02:10:44.138594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.139301"], ["id", 1268]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"569"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 569], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 569]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v70GbSBEwbnHqtfWmzmVZuxGKy3P65AhkOosvl2K6/YihiDNzmqHK"], ["created_at", "2019-12-06 02:10:44.154392"], ["updated_at", "2019-12-06 02:10:44.154392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.156557"], ["last_sign_in_at", "2019-12-06 02:10:44.156557"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.156994"], ["id", 1269]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 35ms (Views: 18.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$apqnRqKYMKlQd5Od2RGjHOY9uPp4je6q/fT.EjrLEJMQP9D1JI1AK"], ["created_at", "2019-12-06 02:10:44.203002"], ["updated_at", "2019-12-06 02:10:44.203002"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.205352"], ["updated_at", "2019-12-06 02:10:44.205352"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1093], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1270], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1270], ["room_id", 1093], ["created_at", "2019-12-06 02:10:44.211302"], ["updated_at", "2019-12-06 02:10:44.211302"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1093], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1270], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1270], ["room_id", 1093], ["created_at", "2019-12-06 02:10:44.215828"], ["updated_at", "2019-12-06 02:10:44.215828"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.218709"], ["last_sign_in_at", "2019-12-06 02:10:44.218709"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.219297"], ["id", 1270]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1093], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1270], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1270], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XaLjqBuPCBsGI2GlSQdZ6.UKvb65RQk9nQAUWSRtqEheyNy0zltAu"], ["created_at", "2019-12-06 02:10:44.235100"], ["updated_at", "2019-12-06 02:10:44.235100"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.237696"], ["updated_at", "2019-12-06 02:10:44.237696"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1094], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1271], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1271], ["room_id", 1094], ["created_at", "2019-12-06 02:10:44.242775"], ["updated_at", "2019-12-06 02:10:44.242775"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1094], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1271], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1271], ["room_id", 1094], ["created_at", "2019-12-06 02:10:44.247321"], ["updated_at", "2019-12-06 02:10:44.247321"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.249911"], ["last_sign_in_at", "2019-12-06 02:10:44.249911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.250459"], ["id", 1271]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1094], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1271], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1271], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aSuZq2wXx/ANeh7rFHTxn.w.Y5819nSd6xDqd/JJe0ZDCroNNL0vS"], ["created_at", "2019-12-06 02:10:44.265015"], ["updated_at", "2019-12-06 02:10:44.265015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.267275"], ["updated_at", "2019-12-06 02:10:44.267275"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1095], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1272], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1272], ["room_id", 1095], ["created_at", "2019-12-06 02:10:44.271327"], ["updated_at", "2019-12-06 02:10:44.271327"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1095], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1272], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1272], ["room_id", 1095], ["created_at", "2019-12-06 02:10:44.275178"], ["updated_at", "2019-12-06 02:10:44.275178"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.277726"], ["last_sign_in_at", "2019-12-06 02:10:44.277726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.278274"], ["id", 1272]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eADs99YOiRHWARQHKO6HvO0arFvsU1vyrFAvRYxGasCugRHyDJrdy"], ["created_at", "2019-12-06 02:10:44.289161"], ["updated_at", "2019-12-06 02:10:44.289161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.291281"], ["updated_at", "2019-12-06 02:10:44.291281"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1096], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1273], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1273], ["room_id", 1096], ["created_at", "2019-12-06 02:10:44.295881"], ["updated_at", "2019-12-06 02:10:44.295881"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1096], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1273], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1273], ["room_id", 1096], ["created_at", "2019-12-06 02:10:44.299880"], ["updated_at", "2019-12-06 02:10:44.299880"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.301885"], ["last_sign_in_at", "2019-12-06 02:10:44.301885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.302348"], ["id", 1273]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CIhKNPCwZSAvD10aFyLPA.Pbo4nHNlwhCsWFrOjPFjTWksdicLrFi"], ["created_at", "2019-12-06 02:10:44.316103"], ["updated_at", "2019-12-06 02:10:44.316103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.318264"], ["last_sign_in_at", "2019-12-06 02:10:44.318264"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.318696"], ["id", 1274]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 64ms (Views: 47.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sY8Fsw0ecqztQBMh9oYjk.24AEWXZCWwc9aVz3wK62Wx/XC5N2b4e"], ["created_at", "2019-12-06 02:10:44.395234"], ["updated_at", "2019-12-06 02:10:44.395234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.398066"], ["last_sign_in_at", "2019-12-06 02:10:44.398066"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.398619"], ["id", 1275]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7pb0djQBCIXhx3faHh/geedHr9AcA6xbhYj3VVPHYsfIFbzlOZDKa"], ["created_at", "2019-12-06 02:10:44.410492"], ["updated_at", "2019-12-06 02:10:44.410492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.412981"], ["last_sign_in_at", "2019-12-06 02:10:44.412981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.413478"], ["id", 1276]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.1ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Bh5/05/kbzvk3nCukqN4F.bN5I2y62tJJp8pB/aLreFrFOBya3B5."], ["created_at", "2019-12-06 02:10:44.442559"], ["updated_at", "2019-12-06 02:10:44.442559"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.445171"], ["last_sign_in_at", "2019-12-06 02:10:44.445171"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.445662"], ["id", 1277]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o1serPOMm5C5jrRG2xPuB.2FqGjcl6l7UpiUfhgp6dlV6NwXu4GO2"], ["created_at", "2019-12-06 02:10:44.466354"], ["updated_at", "2019-12-06 02:10:44.466354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.469724"], ["updated_at", "2019-12-06 02:10:44.469724"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1097” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.471905"], ["last_sign_in_at", "2019-12-06 02:10:44.471905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.472430"], ["id", 1278]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1097"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1097], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 19ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7DUZhzAh0hsa3cq7DaV1v.VEjriYrrFptHaNcwoqxOalj/U0HEkTe"], ["created_at", "2019-12-06 02:10:44.499923"], ["updated_at", "2019-12-06 02:10:44.499923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.502164"], ["updated_at", "2019-12-06 02:10:44.502164"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1098” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.504495"], ["last_sign_in_at", "2019-12-06 02:10:44.504495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.505259"], ["id", 1279]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1098"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1098], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.515827"], ["updated_at", "2019-12-06 02:10:44.515827"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1099” for 127.0.0.1 at 2019-12-05 23:10:44 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1099"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kKZF2K1Ci7Y8Q8KTdhHKkefeGeOlPKjRujX1lbDa17EVqwilGpc9O"], ["created_at", "2019-12-06 02:10:44.527016"], ["updated_at", "2019-12-06 02:10:44.527016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.529418"], ["updated_at", "2019-12-06 02:10:44.529418"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1100/edit” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.531511"], ["last_sign_in_at", "2019-12-06 02:10:44.531511"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.532005"], ["id", 1280]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1100"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1100], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$izrXOE6dR1Kf2X11.b4XCOQlRD9CnmntNRIEAtBXLgF8Bd468sloi"], ["created_at", "2019-12-06 02:10:44.560168"], ["updated_at", "2019-12-06 02:10:44.560168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.562788"], ["updated_at", "2019-12-06 02:10:44.562788"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1101/edit” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.565055"], ["last_sign_in_at", "2019-12-06 02:10:44.565055"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.565744"], ["id", 1281]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1101"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1101], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.584395"], ["updated_at", "2019-12-06 02:10:44.584395"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1102” for 127.0.0.1 at 2019-12-05 23:10:44 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1102"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oGZvozTl/grhgcnqDSAY1eRHCpu12YibM1YVavv7N4ssNE8xF0fdq"], ["created_at", "2019-12-06 02:10:44.596844"], ["updated_at", "2019-12-06 02:10:44.596844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.599735"], ["last_sign_in_at", "2019-12-06 02:10:44.599735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.600399"], ["id", 1282]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.603971"], ["updated_at", "2019-12-06 02:10:44.603971"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yVMmB8.5R6Zc6Eb/bRHG1eT0pRap9SWvUV5PcFC8911i7OJb7Q9Gy"], ["created_at", "2019-12-06 02:10:44.613068"], ["updated_at", "2019-12-06 02:10:44.613068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.615956"], ["last_sign_in_at", "2019-12-06 02:10:44.615956"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.616601"], ["id", 1283]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.620766"], ["updated_at", "2019-12-06 02:10:44.620766"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IyjIk0nxJF4qGidXuDqyqOhfVs8F/TrwE3dEqNrn6T0iN3kDHl/My"], ["created_at", "2019-12-06 02:10:44.629779"], ["updated_at", "2019-12-06 02:10:44.629779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.632361"], ["last_sign_in_at", "2019-12-06 02:10:44.632361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.632876"], ["id", 1284]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DgIL3mSe0ffdzJWiBmAmZ.NNmjQYaY3pSbgE06mkqOjLqouo0G3tq"], ["created_at", "2019-12-06 02:10:44.643998"], ["updated_at", "2019-12-06 02:10:44.643998"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.646567"], ["last_sign_in_at", "2019-12-06 02:10:44.646567"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.647151"], ["id", 1285]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IMXkq1CCo2nUyizLLkEYTeKFKSJCJrS4bPUVQg/4ZS98Bh/0r1ddS"], ["created_at", "2019-12-06 02:10:44.658718"], ["updated_at", "2019-12-06 02:10:44.658718"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.661881"], ["last_sign_in_at", "2019-12-06 02:10:44.661881"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.662436"], ["id", 1286]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FdT87MECkUHKRs5GWdup0uECcm3xHO03E4zMpIFsf8YQy2S/TODrW"], ["created_at", "2019-12-06 02:10:44.674561"], ["updated_at", "2019-12-06 02:10:44.674561"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.677193"], ["updated_at", "2019-12-06 02:10:44.677193"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1105” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.680517"], ["last_sign_in_at", "2019-12-06 02:10:44.680517"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.681046"], ["id", 1287]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1105"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1105], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:10:44.684908"], ["id", 1105]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1105 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b8538negox9KHRGXesnYNObDDMk9MC6Us9C99Ayr.H5HNndEMucwy"], ["created_at", "2019-12-06 02:10:44.693571"], ["updated_at", "2019-12-06 02:10:44.693571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.695904"], ["updated_at", "2019-12-06 02:10:44.695904"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1106” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.698382"], ["last_sign_in_at", "2019-12-06 02:10:44.698382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.698928"], ["id", 1288]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1106"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1106], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:10:44.702755"], ["id", 1106]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1106 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1f2kiHzaT2ilKOCsFIr47OiCKia9aHCmgQCSuPHslmg7UflYBNV8C"], ["created_at", "2019-12-06 02:10:44.712260"], ["updated_at", "2019-12-06 02:10:44.712260"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.714560"], ["updated_at", "2019-12-06 02:10:44.714560"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1107” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.717277"], ["last_sign_in_at", "2019-12-06 02:10:44.717277"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.717808"], ["id", 1289]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1107"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1107], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E3GXRGkm6PDNXonJ6jJWRuDuqQTHVBtTnO8a7YSDig4j.HUxEo9c6"], ["created_at", "2019-12-06 02:10:44.732388"], ["updated_at", "2019-12-06 02:10:44.732388"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.734663"], ["updated_at", "2019-12-06 02:10:44.734663"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1108” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.737067"], ["last_sign_in_at", "2019-12-06 02:10:44.737067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.737871"], ["id", 1290]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1108"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1108], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$euYPf7FN3aU7MgglsZI3.e/SBMWMDUEIYbEwz6KbwOLWvJWD/30BK"], ["created_at", "2019-12-06 02:10:44.752726"], ["updated_at", "2019-12-06 02:10:44.752726"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.755462"], ["last_sign_in_at", "2019-12-06 02:10:44.755462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.756012"], ["id", 1291]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b.n/9goo44UtIR9YW0ZoFO44gxwYkGzt3j6E3rQafELmF.J3IdD4C"], ["created_at", "2019-12-06 02:10:44.766963"], ["updated_at", "2019-12-06 02:10:44.766963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.769283"], ["updated_at", "2019-12-06 02:10:44.769283"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1109” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.771143"], ["last_sign_in_at", "2019-12-06 02:10:44.771143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.771614"], ["id", 1292]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1109"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1109], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1109]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I14TJGNSflPhaVBAjaaY1OflNlswI5KoFDKGF9SI74lakaKhwwt86"], ["created_at", "2019-12-06 02:10:44.783069"], ["updated_at", "2019-12-06 02:10:44.783069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.785391"], ["updated_at", "2019-12-06 02:10:44.785391"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1110” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.787441"], ["last_sign_in_at", "2019-12-06 02:10:44.787441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.788120"], ["id", 1293]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1110"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1110], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1110]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fkPPGP2JfPZ/XkuM1s8sMeUru4cOrBxhi4iln572PdqLHonpR0bxu"], ["created_at", "2019-12-06 02:10:44.800095"], ["updated_at", "2019-12-06 02:10:44.800095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.802290"], ["updated_at", "2019-12-06 02:10:44.802290"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1111” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.804058"], ["last_sign_in_at", "2019-12-06 02:10:44.804058"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.804548"], ["id", 1294]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1111"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JbKVlAy4NONvPKpbCdLbD.Z/9oq4YLzdfZhC9SOB6Prt5PgWt6zZK"], ["created_at", "2019-12-06 02:10:44.814167"], ["updated_at", "2019-12-06 02:10:44.814167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:10:44.816323"], ["updated_at", "2019-12-06 02:10:44.816323"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1112” for 127.0.0.1 at 2019-12-05 23:10:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:10:44.818170"], ["last_sign_in_at", "2019-12-06 02:10:44.818170"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:10:44.818677"], ["id", 1295]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1112"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$k459OawupB4CsWFCSSUK9.cBG1rAjC3y8geHNofeCLqYFA/YPxg86"], ["created_at", "2019-12-06 02:11:37.954021"], ["updated_at", "2019-12-06 02:11:37.954021"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:37.962858"], ["updated_at", "2019-12-06 02:11:37.962858"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1113"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1113], ["LIMIT", 1]]
Appointment Load (1.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1113')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 151ms (Views: 106.9ms | ActiveRecord: 2.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tAjFuGjsK8CZJ8bO0M8pPeb9qqLwU1QcT/XKthx0mE61C7POBBUCq"], ["created_at", "2019-12-06 02:11:38.124334"], ["updated_at", "2019-12-06 02:11:38.124334"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.126668"], ["updated_at", "2019-12-06 02:11:38.126668"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1114], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1297], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1297], ["room_id", 1114], ["created_at", "2019-12-06 02:11:38.162141"], ["updated_at", "2019-12-06 02:11:38.162141"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1114"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1114], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1114')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$V0J0pIbMfnF7XblGNryBmexI/tebEc4pPPH8qVaYmG3HIHIAbP7AG"], ["created_at", "2019-12-06 02:11:38.176043"], ["updated_at", "2019-12-06 02:11:38.176043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.178471"], ["updated_at", "2019-12-06 02:11:38.178471"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1115], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1298], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1298], ["room_id", 1115], ["created_at", "2019-12-06 02:11:38.182307"], ["updated_at", "2019-12-06 02:11:38.182307"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1115"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1115], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1115')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$D0PeqQkFCi5mFc2emD565O8Jsx2l4o8cvuPjeWRGml5fobYD5SLKS"], ["created_at", "2019-12-06 02:11:38.192213"], ["updated_at", "2019-12-06 02:11:38.192213"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.194471"], ["updated_at", "2019-12-06 02:11:38.194471"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1116], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1299], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1299], ["room_id", 1116], ["created_at", "2019-12-06 02:11:38.198433"], ["updated_at", "2019-12-06 02:11:38.198433"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1116"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1116], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1116')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xXgFw.pftcGHUT8rVj9gN.gLawr6EMafOEbGG.dJAkTVt57ktJumq"], ["created_at", "2019-12-06 02:11:38.242823"], ["updated_at", "2019-12-06 02:11:38.242823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.245287"], ["updated_at", "2019-12-06 02:11:38.245287"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1117], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1300], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1300], ["room_id", 1117], ["created_at", "2019-12-06 02:11:38.249267"], ["updated_at", "2019-12-06 02:11:38.249267"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1117"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1117], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1117')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 105ms (Views: 74.3ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TLBdOq2BOlmVFX2XYvipEOKeVKf30sua3HVZC3POTP.8ffHw/pE6."], ["created_at", "2019-12-06 02:11:38.814404"], ["updated_at", "2019-12-06 02:11:38.814404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.816397"], ["updated_at", "2019-12-06 02:11:38.816397"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:11:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:38.831975"], ["last_sign_in_at", "2019-12-06 02:11:38.831975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:38.832591"], ["id", 1301]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1118"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1118], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1301], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1301], ["room_id", 1118], ["created_at", "2019-12-06 02:11:38.848629"], ["updated_at", "2019-12-06 02:11:38.848629"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1118], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kLqdWrWRkvCVE6qWWupQVuwtxPJY4Ug4BUsvrHb9uxlyPMt5rGMgq"], ["created_at", "2019-12-06 02:11:38.857148"], ["updated_at", "2019-12-06 02:11:38.857148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.859435"], ["updated_at", "2019-12-06 02:11:38.859435"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:11:38 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:38.866572"], ["last_sign_in_at", "2019-12-06 02:11:38.866572"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:38.867201"], ["id", 1302]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1119"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1119], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1302], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1302], ["room_id", 1119], ["created_at", "2019-12-06 02:11:38.872105"], ["updated_at", "2019-12-06 02:11:38.872105"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jf74N3HOzJCoZFI9gz8r7eycdR0uAvyP3aIwzPrKWHb9/yuR4rNfa"], ["created_at", "2019-12-06 02:11:38.880538"], ["updated_at", "2019-12-06 02:11:38.880538"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.882551"], ["updated_at", "2019-12-06 02:11:38.882551"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:11:38 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:38.884960"], ["last_sign_in_at", "2019-12-06 02:11:38.884960"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:38.885606"], ["id", 1303]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1120"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1120], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ccz7J7pwJhv9/58l1O504uSCqHAoBzk2PZDZ4.UuK0rZC6j8oCroO"], ["created_at", "2019-12-06 02:11:38.894233"], ["updated_at", "2019-12-06 02:11:38.894233"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.897301"], ["updated_at", "2019-12-06 02:11:38.897301"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:11:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:38.899528"], ["last_sign_in_at", "2019-12-06 02:11:38.899528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:38.900030"], ["id", 1304]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1121"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1HLs6rOMACYoxqjWFuQUHuqsSj.bpByFbjkvI1r/JsPvYhYLC21WO"], ["created_at", "2019-12-06 02:11:38.910219"], ["updated_at", "2019-12-06 02:11:38.910219"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:38.912850"], ["updated_at", "2019-12-06 02:11:38.912850"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1122], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1305], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1305], ["room_id", 1122], ["created_at", "2019-12-06 02:11:38.916903"], ["updated_at", "2019-12-06 02:11:38.916903"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1122” for 127.0.0.1 at 2019-12-05 23:11:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:38.919240"], ["last_sign_in_at", "2019-12-06 02:11:38.919240"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:38.919754"], ["id", 1305]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1122"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1122], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1122')
Rendered appointments/show.html.erb within layouts/application (21.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 352ms (Views: 334.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AUlRXL.ab4OfXMxhuwC/.un42SRUO6jSa4AuA3yM2kBEBWUAVhypK"], ["created_at", "2019-12-06 02:11:39.281897"], ["updated_at", "2019-12-06 02:11:39.281897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.284250"], ["updated_at", "2019-12-06 02:11:39.284250"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1123], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1306], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1306], ["room_id", 1123], ["created_at", "2019-12-06 02:11:39.288828"], ["updated_at", "2019-12-06 02:11:39.288828"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1123], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1306], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1306], ["room_id", 1123], ["created_at", "2019-12-06 02:11:39.292432"], ["updated_at", "2019-12-06 02:11:39.292432"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.294881"], ["last_sign_in_at", "2019-12-06 02:11:39.294881"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.295490"], ["id", 1306]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1306]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 35ms (Views: 4.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$i26XjUkmKMBYcHyznH.kWe6z/PXP.dvPPTHQIK7ALVMVfnaRiwjGy"], ["created_at", "2019-12-06 02:11:39.339687"], ["updated_at", "2019-12-06 02:11:39.339687"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.342039"], ["updated_at", "2019-12-06 02:11:39.342039"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1124], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1307], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1307], ["room_id", 1124], ["created_at", "2019-12-06 02:11:39.346880"], ["updated_at", "2019-12-06 02:11:39.346880"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1124], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1307], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1307], ["room_id", 1124], ["created_at", "2019-12-06 02:11:39.350866"], ["updated_at", "2019-12-06 02:11:39.350866"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.353161"], ["last_sign_in_at", "2019-12-06 02:11:39.353161"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.353708"], ["id", 1307]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1307]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$P/E2.YoVzSWwuV.TRwoohuXzweWlC5GsVr5naI8f0XJQ8Iiz1rqvO"], ["created_at", "2019-12-06 02:11:39.367881"], ["updated_at", "2019-12-06 02:11:39.367881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.370109"], ["updated_at", "2019-12-06 02:11:39.370109"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1125], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1308], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1308], ["room_id", 1125], ["created_at", "2019-12-06 02:11:39.374437"], ["updated_at", "2019-12-06 02:11:39.374437"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/589” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.376719"], ["last_sign_in_at", "2019-12-06 02:11:39.376719"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.377249"], ["id", 1308]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"589"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 589], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 589]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zRWlFpy2GSuYjGINvyz98uTrlm7v.kFCb0EiP7.5wpcGnZQXBH83K"], ["created_at", "2019-12-06 02:11:39.391931"], ["updated_at", "2019-12-06 02:11:39.391931"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.394248"], ["last_sign_in_at", "2019-12-06 02:11:39.394248"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.394945"], ["id", 1309]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m9fdsupdmI512Vi9pimRquJKN5gINjUueBIlYOZV56cxt5mg0FNYu"], ["created_at", "2019-12-06 02:11:39.439445"], ["updated_at", "2019-12-06 02:11:39.439445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.441668"], ["updated_at", "2019-12-06 02:11:39.441668"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1126], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1310], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1310], ["room_id", 1126], ["created_at", "2019-12-06 02:11:39.446405"], ["updated_at", "2019-12-06 02:11:39.446405"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1126], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1310], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1310], ["room_id", 1126], ["created_at", "2019-12-06 02:11:39.450762"], ["updated_at", "2019-12-06 02:11:39.450762"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.453337"], ["last_sign_in_at", "2019-12-06 02:11:39.453337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.453895"], ["id", 1310]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1126], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1310], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1310], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uW7TN.h/pmXUUK.m5pbTgOMiV5PKw4u4PioA9suoOtNGaxkVt/uyW"], ["created_at", "2019-12-06 02:11:39.470353"], ["updated_at", "2019-12-06 02:11:39.470353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.473102"], ["updated_at", "2019-12-06 02:11:39.473102"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1127], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1311], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1311], ["room_id", 1127], ["created_at", "2019-12-06 02:11:39.478660"], ["updated_at", "2019-12-06 02:11:39.478660"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1127], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1311], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1311], ["room_id", 1127], ["created_at", "2019-12-06 02:11:39.484309"], ["updated_at", "2019-12-06 02:11:39.484309"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.488127"], ["last_sign_in_at", "2019-12-06 02:11:39.488127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.489553"], ["id", 1311]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1127], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1311], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1311], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jWziaPbgqS9FPPxL6aGjTe4u3kBuLbSPOQ8ue6PBPTbZDYGJ.Yoca"], ["created_at", "2019-12-06 02:11:39.508670"], ["updated_at", "2019-12-06 02:11:39.508670"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.9ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.512528"], ["updated_at", "2019-12-06 02:11:39.512528"]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1128], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1312], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1312], ["room_id", 1128], ["created_at", "2019-12-06 02:11:39.517960"], ["updated_at", "2019-12-06 02:11:39.517960"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1128], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1312], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1312], ["room_id", 1128], ["created_at", "2019-12-06 02:11:39.523764"], ["updated_at", "2019-12-06 02:11:39.523764"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.526949"], ["last_sign_in_at", "2019-12-06 02:11:39.526949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.527622"], ["id", 1312]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sRXRyxnbAo.pzCQQenJYZuqUM.AIuNAH/QlriTe50hjyxpY2vRyXW"], ["created_at", "2019-12-06 02:11:39.542606"], ["updated_at", "2019-12-06 02:11:39.542606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.545859"], ["updated_at", "2019-12-06 02:11:39.545859"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1129], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1313], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1313], ["room_id", 1129], ["created_at", "2019-12-06 02:11:39.551640"], ["updated_at", "2019-12-06 02:11:39.551640"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1129], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1313], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1313], ["room_id", 1129], ["created_at", "2019-12-06 02:11:39.556494"], ["updated_at", "2019-12-06 02:11:39.556494"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.559556"], ["last_sign_in_at", "2019-12-06 02:11:39.559556"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.560427"], ["id", 1313]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lz.xzMgwWRaxOMDWfQ1RQONxnHtluPjXE0.7Pyp9edlWKUWB1PcZS"], ["created_at", "2019-12-06 02:11:39.577815"], ["updated_at", "2019-12-06 02:11:39.577815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.581605"], ["last_sign_in_at", "2019-12-06 02:11:39.581605"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.582179"], ["id", 1314]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (12.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 67ms (Views: 50.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.mlTKRa.4Z/u.3mtnaiH2O9eALH4ZuuZHSvT6lI.SjjQQlRtcWl.u"], ["created_at", "2019-12-06 02:11:39.662932"], ["updated_at", "2019-12-06 02:11:39.662932"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.665528"], ["last_sign_in_at", "2019-12-06 02:11:39.665528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.666601"], ["id", 1315]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RvbRtmRupJnadirAzLqZRuhiSS19NPp5NOI7eaED4erBqsuVRQOne"], ["created_at", "2019-12-06 02:11:39.678005"], ["updated_at", "2019-12-06 02:11:39.678005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.680704"], ["last_sign_in_at", "2019-12-06 02:11:39.680704"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.681199"], ["id", 1316]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 3.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D04DzZz32nBl5J7BoayjIearR3IMbC63DXPeSpMAhWHvSmnn5hs4u"], ["created_at", "2019-12-06 02:11:39.709765"], ["updated_at", "2019-12-06 02:11:39.709765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.712778"], ["last_sign_in_at", "2019-12-06 02:11:39.712778"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.713317"], ["id", 1317]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (6.4ms)

Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6yP13t/Tm3aXw6WRHMPXK.hFHWMNAUEJ1jsuO51sy2lLv9T9WdBvu"], ["created_at", "2019-12-06 02:11:39.743370"], ["updated_at", "2019-12-06 02:11:39.743370"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.745673"], ["updated_at", "2019-12-06 02:11:39.745673"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1130” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.747776"], ["last_sign_in_at", "2019-12-06 02:11:39.747776"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.748264"], ["id", 1318]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1130"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1130], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0ln6/90R./sP/VKobfZmNeV6XH1DMQT1y7k/AVdLYaCyV5pvrXZWe"], ["created_at", "2019-12-06 02:11:39.775158"], ["updated_at", "2019-12-06 02:11:39.775158"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.777606"], ["updated_at", "2019-12-06 02:11:39.777606"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1131” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.780064"], ["last_sign_in_at", "2019-12-06 02:11:39.780064"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.780810"], ["id", 1319]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1131"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1131], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.790527"], ["updated_at", "2019-12-06 02:11:39.790527"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1132” for 127.0.0.1 at 2019-12-05 23:11:39 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1132"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8FijOgIjZDhJpn1adtJsEeGkdt8jsx.8qjx5d0Q6ovAM2BRzA.eri"], ["created_at", "2019-12-06 02:11:39.801464"], ["updated_at", "2019-12-06 02:11:39.801464"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.803733"], ["updated_at", "2019-12-06 02:11:39.803733"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1133/edit” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.805746"], ["last_sign_in_at", "2019-12-06 02:11:39.805746"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.806428"], ["id", 1320]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1133"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1133], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 19ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G3lYAvfB/zZe.2CXXRh/FeYWw7Av448GzUAMOzFaN6ZK2uiufwafS"], ["created_at", "2019-12-06 02:11:39.834609"], ["updated_at", "2019-12-06 02:11:39.834609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.836820"], ["updated_at", "2019-12-06 02:11:39.836820"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1134/edit” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.838867"], ["last_sign_in_at", "2019-12-06 02:11:39.838867"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.839506"], ["id", 1321]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1134"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1134], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.851751"], ["updated_at", "2019-12-06 02:11:39.851751"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1135” for 127.0.0.1 at 2019-12-05 23:11:39 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1135"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TCg0AfFQJtEVSFrBXXWSw..HPz1YhVVfOLz6bVq7FzXi45xCDfW7q"], ["created_at", "2019-12-06 02:11:39.864057"], ["updated_at", "2019-12-06 02:11:39.864057"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.866596"], ["last_sign_in_at", "2019-12-06 02:11:39.866596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.867094"], ["id", 1322]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.871205"], ["updated_at", "2019-12-06 02:11:39.871205"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jjdCDGVyEtZd30rMG.y31evEpmzR5.8J3ngtpJ.FrxSy2KPB7hhA."], ["created_at", "2019-12-06 02:11:39.880206"], ["updated_at", "2019-12-06 02:11:39.880206"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.882893"], ["last_sign_in_at", "2019-12-06 02:11:39.882893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.883407"], ["id", 1323]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.886541"], ["updated_at", "2019-12-06 02:11:39.886541"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4dAl.2mOTz3h0akXb45ZYOuMg0ym9Oed7cX46iMWVcdIsrKzoqxj2"], ["created_at", "2019-12-06 02:11:39.895583"], ["updated_at", "2019-12-06 02:11:39.895583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.898210"], ["last_sign_in_at", "2019-12-06 02:11:39.898210"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.898695"], ["id", 1324]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LWheihz4.zUCHv.yDmZFJOUgUbfyvS6ZGIxIWIglVDwdZloO/LssG"], ["created_at", "2019-12-06 02:11:39.910248"], ["updated_at", "2019-12-06 02:11:39.910248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.913281"], ["last_sign_in_at", "2019-12-06 02:11:39.913281"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.913799"], ["id", 1325]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m7kQUJcq5SmFDfcV0o6ExeZsWUOHOmuctNGTv.MTX3nYC0GP88C.i"], ["created_at", "2019-12-06 02:11:39.924909"], ["updated_at", "2019-12-06 02:11:39.924909"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.927529"], ["last_sign_in_at", "2019-12-06 02:11:39.927529"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.928260"], ["id", 1326]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CnZR4XrdjQLYbP7XCGGThO0ncFQu3n6D07246AA2hx7LjWLbBmb66"], ["created_at", "2019-12-06 02:11:39.939765"], ["updated_at", "2019-12-06 02:11:39.939765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.942038"], ["updated_at", "2019-12-06 02:11:39.942038"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1138” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.944449"], ["last_sign_in_at", "2019-12-06 02:11:39.944449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.945176"], ["id", 1327]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1138"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1138], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:11:39.949127"], ["id", 1138]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1138 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f5bgm.48eVJ6UDjsCTv9ve91Qqs6eAx30gaUdoFLX8AAFfnrayvjK"], ["created_at", "2019-12-06 02:11:39.957528"], ["updated_at", "2019-12-06 02:11:39.957528"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.959732"], ["updated_at", "2019-12-06 02:11:39.959732"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1139” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.962856"], ["last_sign_in_at", "2019-12-06 02:11:39.962856"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.963446"], ["id", 1328]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1139"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1139], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:11:39.967321"], ["id", 1139]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1139 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bZmub7FMgwAzDuvj.lUZOenVP8t27oo0sdQYPDNZ5XANkJxbnfoHG"], ["created_at", "2019-12-06 02:11:39.975765"], ["updated_at", "2019-12-06 02:11:39.975765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.978485"], ["updated_at", "2019-12-06 02:11:39.978485"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1140” for 127.0.0.1 at 2019-12-05 23:11:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:39.981309"], ["last_sign_in_at", "2019-12-06 02:11:39.981309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:39.981877"], ["id", 1329]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1140"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1140], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uIblYLhcSpN17AvAOV13duZDfWOVCJzOaE.U4woulNdGyJwTVCy3u"], ["created_at", "2019-12-06 02:11:39.996433"], ["updated_at", "2019-12-06 02:11:39.996433"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:39.999181"], ["updated_at", "2019-12-06 02:11:39.999181"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1141” for 127.0.0.1 at 2019-12-05 23:11:40 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.002556"], ["last_sign_in_at", "2019-12-06 02:11:40.002556"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.003120"], ["id", 1330]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1141"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1141], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iASVVQ3U38/FTG6YLJgY9.uHELzQ6AJJtbL85nqFwEpieQoNEJLMa"], ["created_at", "2019-12-06 02:11:40.017877"], ["updated_at", "2019-12-06 02:11:40.017877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:11:40 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.020533"], ["last_sign_in_at", "2019-12-06 02:11:40.020533"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.021045"], ["id", 1331]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BzkU0KHt4wjbUcx4UTD0BeMNYK50ybejO8nTzujI7g.YJ8oKAeBUS"], ["created_at", "2019-12-06 02:11:40.032778"], ["updated_at", "2019-12-06 02:11:40.032778"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:40.035121"], ["updated_at", "2019-12-06 02:11:40.035121"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1142” for 127.0.0.1 at 2019-12-05 23:11:40 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.037010"], ["last_sign_in_at", "2019-12-06 02:11:40.037010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.037510"], ["id", 1332]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1142"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1142], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1142]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yaYq846a95iPG4jCFsPxJeszKqtZlumeYsEXZEg9E5PO.SneKCYMq"], ["created_at", "2019-12-06 02:11:40.048907"], ["updated_at", "2019-12-06 02:11:40.048907"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:40.051230"], ["updated_at", "2019-12-06 02:11:40.051230"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1143” for 127.0.0.1 at 2019-12-05 23:11:40 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.053625"], ["last_sign_in_at", "2019-12-06 02:11:40.053625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.054305"], ["id", 1333]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1143"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1143], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1143]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LvBg8pz56gKQGczt5hM.7OW4oz5b8TgB1Iitq2beUANTnZXrV65ce"], ["created_at", "2019-12-06 02:11:40.067350"], ["updated_at", "2019-12-06 02:11:40.067350"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:40.069670"], ["updated_at", "2019-12-06 02:11:40.069670"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1144” for 127.0.0.1 at 2019-12-05 23:11:40 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.075634"], ["last_sign_in_at", "2019-12-06 02:11:40.075634"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.076162"], ["id", 1334]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1144"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pXJ2p2bUpiW/pDTtjudp/eUoTaI4Sb84EeFeZcA5hrEYCB1gluVPC"], ["created_at", "2019-12-06 02:11:40.085825"], ["updated_at", "2019-12-06 02:11:40.085825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:11:40.088011"], ["updated_at", "2019-12-06 02:11:40.088011"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1145” for 127.0.0.1 at 2019-12-05 23:11:40 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:11:40.089852"], ["last_sign_in_at", "2019-12-06 02:11:40.089852"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:11:40.090336"], ["id", 1335]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1145"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xaKhFKvhpWntrUpV68bWR.ZqH2geo1mrOgFy96CqFBBBQJl2GpRS6"], ["created_at", "2019-12-06 02:12:27.013123"], ["updated_at", "2019-12-06 02:12:27.013123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.021834"], ["updated_at", "2019-12-06 02:12:27.021834"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1146"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1146], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1146')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 152ms (Views: 108.5ms | ActiveRecord: 2.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$deHAm3D98sKlkntnpeb3QOzZEc1sWrWwIAwOzMefaicFYePCGDMrW"], ["created_at", "2019-12-06 02:12:27.184297"], ["updated_at", "2019-12-06 02:12:27.184297"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.186846"], ["updated_at", "2019-12-06 02:12:27.186846"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1147], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1337], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1337], ["room_id", 1147], ["created_at", "2019-12-06 02:12:27.226412"], ["updated_at", "2019-12-06 02:12:27.226412"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1147"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1147], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1147')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0LSZ1.TUUnM.SmuDxGMZ5eaA9nXDcago1PvPC59C0lGqBp.Hxhv8K"], ["created_at", "2019-12-06 02:12:27.240469"], ["updated_at", "2019-12-06 02:12:27.240469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.242645"], ["updated_at", "2019-12-06 02:12:27.242645"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1148], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1338], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1338], ["room_id", 1148], ["created_at", "2019-12-06 02:12:27.247683"], ["updated_at", "2019-12-06 02:12:27.247683"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1148"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1148], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1148')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$c/x7rQLZhfn9XpFQUt8hSOY3F0h6p9aKpeGg3IhpZAkwHUWnUzoPu"], ["created_at", "2019-12-06 02:12:27.260211"], ["updated_at", "2019-12-06 02:12:27.260211"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.262619"], ["updated_at", "2019-12-06 02:12:27.262619"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1149], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1339], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1339], ["room_id", 1149], ["created_at", "2019-12-06 02:12:27.267437"], ["updated_at", "2019-12-06 02:12:27.267437"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1149"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1149], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1149')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$g7hW99bbAQ2ZHeWuih3kF.YXGr89pWanBpczK8qcfLRtlATICodmG"], ["created_at", "2019-12-06 02:12:27.314890"], ["updated_at", "2019-12-06 02:12:27.314890"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.316929"], ["updated_at", "2019-12-06 02:12:27.316929"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1150], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1340], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1340], ["room_id", 1150], ["created_at", "2019-12-06 02:12:27.320696"], ["updated_at", "2019-12-06 02:12:27.320696"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1150"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1150], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1150')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 110ms (Views: 79.0ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0owWbsdhmvvyUaoW/rkx/OPpWPekUFi.LMlTG5Se7V3I7NPbtEoPq"], ["created_at", "2019-12-06 02:12:27.899062"], ["updated_at", "2019-12-06 02:12:27.899062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.901076"], ["updated_at", "2019-12-06 02:12:27.901076"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:12:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:27.916557"], ["last_sign_in_at", "2019-12-06 02:12:27.916557"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:27.917194"], ["id", 1341]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1151"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1151], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1341], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1341], ["room_id", 1151], ["created_at", "2019-12-06 02:12:27.937793"], ["updated_at", "2019-12-06 02:12:27.937793"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1151], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yt5l8iux5.HYyuzEnITo0.tMHVFEKP1kot0Ys4YIXoEuZaxo./L9u"], ["created_at", "2019-12-06 02:12:27.946336"], ["updated_at", "2019-12-06 02:12:27.946336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.948661"], ["updated_at", "2019-12-06 02:12:27.948661"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:12:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:27.951023"], ["last_sign_in_at", "2019-12-06 02:12:27.951023"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:27.951601"], ["id", 1342]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1152"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1152], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1342], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1342], ["room_id", 1152], ["created_at", "2019-12-06 02:12:27.956144"], ["updated_at", "2019-12-06 02:12:27.956144"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fmUa0SHEl99CHIxfg4wYEugNVrILan3xLnVFaLjPKEwkmgsDRi9hm"], ["created_at", "2019-12-06 02:12:27.964655"], ["updated_at", "2019-12-06 02:12:27.964655"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.966706"], ["updated_at", "2019-12-06 02:12:27.966706"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:12:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:27.968872"], ["last_sign_in_at", "2019-12-06 02:12:27.968872"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:27.969370"], ["id", 1343]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1153"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1153], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dGoFggFhJ3mhcmWNh70oqehAg2Iu8KYE9aAAXFaVSXP0hplaPdmQa"], ["created_at", "2019-12-06 02:12:27.978181"], ["updated_at", "2019-12-06 02:12:27.978181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.981056"], ["updated_at", "2019-12-06 02:12:27.981056"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:12:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:27.983771"], ["last_sign_in_at", "2019-12-06 02:12:27.983771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:27.984295"], ["id", 1344]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1154"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/9mFrFd5KlaMR6z7u0CC/OLHD6dvbRkdtIKRi5cQ1ojCVt/YzyRja"], ["created_at", "2019-12-06 02:12:27.994032"], ["updated_at", "2019-12-06 02:12:27.994032"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:27.996513"], ["updated_at", "2019-12-06 02:12:27.996513"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1155], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1345], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1345], ["room_id", 1155], ["created_at", "2019-12-06 02:12:28.001116"], ["updated_at", "2019-12-06 02:12:28.001116"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1155” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.003619"], ["last_sign_in_at", "2019-12-06 02:12:28.003619"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.004102"], ["id", 1345]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1155"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1155], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1155')
Rendered appointments/show.html.erb within layouts/application (20.4ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 390ms (Views: 373.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Vc49cuz.Nl7UPXKEHTQXf.ktPXuttsXbMfG/ED9JGWbF7EwoZmzmO"], ["created_at", "2019-12-06 02:12:28.404509"], ["updated_at", "2019-12-06 02:12:28.404509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.406820"], ["updated_at", "2019-12-06 02:12:28.406820"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1156], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1346], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1346], ["room_id", 1156], ["created_at", "2019-12-06 02:12:28.411483"], ["updated_at", "2019-12-06 02:12:28.411483"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1156], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1346], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1346], ["room_id", 1156], ["created_at", "2019-12-06 02:12:28.415577"], ["updated_at", "2019-12-06 02:12:28.415577"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.417726"], ["last_sign_in_at", "2019-12-06 02:12:28.417726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.418234"], ["id", 1346]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1346]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KtUP62dfRkj6YunzI3Oy/eHt.sYk.6fiJPcQrFZWv10CnSwLphBLC"], ["created_at", "2019-12-06 02:12:28.461296"], ["updated_at", "2019-12-06 02:12:28.461296"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.464041"], ["updated_at", "2019-12-06 02:12:28.464041"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1157], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1347], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1347], ["room_id", 1157], ["created_at", "2019-12-06 02:12:28.468233"], ["updated_at", "2019-12-06 02:12:28.468233"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1157], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1347], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1347], ["room_id", 1157], ["created_at", "2019-12-06 02:12:28.472261"], ["updated_at", "2019-12-06 02:12:28.472261"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.474668"], ["last_sign_in_at", "2019-12-06 02:12:28.474668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.475169"], ["id", 1347]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1347]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xPmphqMhY344TiT2sZ6/Sux3R386AugR8brWnQf9POMw2VZbO5M62"], ["created_at", "2019-12-06 02:12:28.488648"], ["updated_at", "2019-12-06 02:12:28.488648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.490904"], ["updated_at", "2019-12-06 02:12:28.490904"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1158], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1348], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1348], ["room_id", 1158], ["created_at", "2019-12-06 02:12:28.495123"], ["updated_at", "2019-12-06 02:12:28.495123"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/609” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.497754"], ["last_sign_in_at", "2019-12-06 02:12:28.497754"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.498334"], ["id", 1348]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"609"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 609], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 609]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8LZa5sH7jqy5hOQkDjOnmehyTHueJsUjMLECeWwyrA/xaD4Yyu7Ya"], ["created_at", "2019-12-06 02:12:28.512051"], ["updated_at", "2019-12-06 02:12:28.512051"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.515045"], ["last_sign_in_at", "2019-12-06 02:12:28.515045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.515772"], ["id", 1349]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 37ms (Views: 20.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JLRNQpEmWMVLMHj2AIe8t.73/zTJz2KjO.qCJ5IcPJSuhvoLsL8l6"], ["created_at", "2019-12-06 02:12:28.561155"], ["updated_at", "2019-12-06 02:12:28.561155"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.563509"], ["updated_at", "2019-12-06 02:12:28.563509"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1159], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1350], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1350], ["room_id", 1159], ["created_at", "2019-12-06 02:12:28.567751"], ["updated_at", "2019-12-06 02:12:28.567751"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1159], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1350], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1350], ["room_id", 1159], ["created_at", "2019-12-06 02:12:28.571274"], ["updated_at", "2019-12-06 02:12:28.571274"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.573492"], ["last_sign_in_at", "2019-12-06 02:12:28.573492"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.573981"], ["id", 1350]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1159], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1350], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1350], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Yxp0hV4ags8sXIIh7d0JzezsrgP3ZtXHQAaB8gk5afBKeWSufzG8e"], ["created_at", "2019-12-06 02:12:28.586915"], ["updated_at", "2019-12-06 02:12:28.586915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.589369"], ["updated_at", "2019-12-06 02:12:28.589369"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1160], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1351], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1351], ["room_id", 1160], ["created_at", "2019-12-06 02:12:28.593868"], ["updated_at", "2019-12-06 02:12:28.593868"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1160], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1351], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1351], ["room_id", 1160], ["created_at", "2019-12-06 02:12:28.598444"], ["updated_at", "2019-12-06 02:12:28.598444"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.600711"], ["last_sign_in_at", "2019-12-06 02:12:28.600711"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.601240"], ["id", 1351]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1160], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1351], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1351], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WOKlkiDn320jQjZs0YUG1eBy0JfEfyWPYD17Shs52Easbyxh9OR/q"], ["created_at", "2019-12-06 02:12:28.615910"], ["updated_at", "2019-12-06 02:12:28.615910"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.618141"], ["updated_at", "2019-12-06 02:12:28.618141"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1161], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1352], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1352], ["room_id", 1161], ["created_at", "2019-12-06 02:12:28.622672"], ["updated_at", "2019-12-06 02:12:28.622672"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1161], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1352], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1352], ["room_id", 1161], ["created_at", "2019-12-06 02:12:28.626484"], ["updated_at", "2019-12-06 02:12:28.626484"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.628880"], ["last_sign_in_at", "2019-12-06 02:12:28.628880"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.629776"], ["id", 1352]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d1EHZeXeSOG0Ib0Hd0wOW.BAkh8Av918/1GJd91NjTfCmmciCtqGa"], ["created_at", "2019-12-06 02:12:28.641115"], ["updated_at", "2019-12-06 02:12:28.641115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.643098"], ["updated_at", "2019-12-06 02:12:28.643098"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1162], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1353], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1353], ["room_id", 1162], ["created_at", "2019-12-06 02:12:28.647474"], ["updated_at", "2019-12-06 02:12:28.647474"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1162], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1353], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1353], ["room_id", 1162], ["created_at", "2019-12-06 02:12:28.651346"], ["updated_at", "2019-12-06 02:12:28.651346"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.653488"], ["last_sign_in_at", "2019-12-06 02:12:28.653488"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.654036"], ["id", 1353]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2L4oJEjIUvnY5iDZJjS2DuMu2Y6e7.NsVobkRxQDdZyx0LGJsOUtS"], ["created_at", "2019-12-06 02:12:28.667423"], ["updated_at", "2019-12-06 02:12:28.667423"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.669860"], ["last_sign_in_at", "2019-12-06 02:12:28.669860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.670591"], ["id", 1354]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 62ms (Views: 46.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DDP9hY4OQtwajF0FPfUhXOA0Y8fuU2/NNvDdHxYsv83mF68XPi5N."], ["created_at", "2019-12-06 02:12:28.744364"], ["updated_at", "2019-12-06 02:12:28.744364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.747020"], ["last_sign_in_at", "2019-12-06 02:12:28.747020"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.747555"], ["id", 1355]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b6AzRNFym2B5dSJsSkth8uTVJAA7hEncutrtRsyA.lc2oZ.L9.DQm"], ["created_at", "2019-12-06 02:12:28.757856"], ["updated_at", "2019-12-06 02:12:28.757856"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.761029"], ["last_sign_in_at", "2019-12-06 02:12:28.761029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.761617"], ["id", 1356]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 19ms (Views: 3.1ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/YUp58x1yPq5XX9UNTlj.OTMS6a.kPL/JKzoZ8/DpMf.EVsqC7/32"], ["created_at", "2019-12-06 02:12:28.790129"], ["updated_at", "2019-12-06 02:12:28.790129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.792469"], ["last_sign_in_at", "2019-12-06 02:12:28.792469"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.792989"], ["id", 1357]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/dgw3BVKxC/QmKoj5N57CuljZXLk/sLJ.2WwmPMZZgx3vg6zsaT2i"], ["created_at", "2019-12-06 02:12:28.815070"], ["updated_at", "2019-12-06 02:12:28.815070"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.817311"], ["updated_at", "2019-12-06 02:12:28.817311"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1163” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.819232"], ["last_sign_in_at", "2019-12-06 02:12:28.819232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.819678"], ["id", 1358]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1163"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1163], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 18ms (Views: 2.1ms | ActiveRecord: 0.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1XgO7mlqaDaE8SiR7vLItOgjavfmj5dwvbWgOz19GS/YHFJJEBqjm"], ["created_at", "2019-12-06 02:12:28.846819"], ["updated_at", "2019-12-06 02:12:28.846819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.849140"], ["updated_at", "2019-12-06 02:12:28.849140"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1164” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.851604"], ["last_sign_in_at", "2019-12-06 02:12:28.851604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.852147"], ["id", 1359]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1164"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1164], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.861945"], ["updated_at", "2019-12-06 02:12:28.861945"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1165” for 127.0.0.1 at 2019-12-05 23:12:28 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1165"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m04T7yJHIPT3VPdMpmvRXOn2.0.bqk4KSh/qIXi/l99qlyWfVAGW6"], ["created_at", "2019-12-06 02:12:28.872790"], ["updated_at", "2019-12-06 02:12:28.872790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.874977"], ["updated_at", "2019-12-06 02:12:28.874977"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1166/edit” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.876990"], ["last_sign_in_at", "2019-12-06 02:12:28.876990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.877511"], ["id", 1360]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1166"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1166], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UZApblYawp0mRM03k0pzDejzjMOEA65YVzvPteZ2zmkoBdmZDcNKC"], ["created_at", "2019-12-06 02:12:28.905267"], ["updated_at", "2019-12-06 02:12:28.905267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.907423"], ["updated_at", "2019-12-06 02:12:28.907423"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1167/edit” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.909408"], ["last_sign_in_at", "2019-12-06 02:12:28.909408"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.909916"], ["id", 1361]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1167"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1167], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.928566"], ["updated_at", "2019-12-06 02:12:28.928566"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1168” for 127.0.0.1 at 2019-12-05 23:12:28 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1168"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qWJRTZ8SztR61Kh627tXl.TyH.AbUZRhYd.kKuodum4kYj.LGpk2u"], ["created_at", "2019-12-06 02:12:28.940791"], ["updated_at", "2019-12-06 02:12:28.940791"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.943338"], ["last_sign_in_at", "2019-12-06 02:12:28.943338"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.943851"], ["id", 1362]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.948398"], ["updated_at", "2019-12-06 02:12:28.948398"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Wa01L8nMh19NjbjlYgYDpOUY4yWpOAIv8eV363QmthPyYi0ELCeK6"], ["created_at", "2019-12-06 02:12:28.957275"], ["updated_at", "2019-12-06 02:12:28.957275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.959900"], ["last_sign_in_at", "2019-12-06 02:12:28.959900"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.960397"], ["id", 1363]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:28.963896"], ["updated_at", "2019-12-06 02:12:28.963896"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ANVJYhXQDknbeDFmUqhWWOp1X.Z.czI50CNJ49QQxCGwmjSdHFFvq"], ["created_at", "2019-12-06 02:12:28.972312"], ["updated_at", "2019-12-06 02:12:28.972312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.974854"], ["last_sign_in_at", "2019-12-06 02:12:28.974854"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.975351"], ["id", 1364]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RnpaS3CqvlHjaPHiZ11py.Oxc2pJzGgd8Cgx8gBGSJ0vLy1tnGO4C"], ["created_at", "2019-12-06 02:12:28.987547"], ["updated_at", "2019-12-06 02:12:28.987547"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:28.990734"], ["last_sign_in_at", "2019-12-06 02:12:28.990734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:28.991407"], ["id", 1365]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KPtRIfoZArsrRISnv1X7JeFwkVWTf2G8jZt0kzF//GhXVFygD/zHO"], ["created_at", "2019-12-06 02:12:29.003299"], ["updated_at", "2019-12-06 02:12:29.003299"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:29 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.005772"], ["last_sign_in_at", "2019-12-06 02:12:29.005772"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.006255"], ["id", 1366]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dh6CrkWg84D47AxAgiwwWeDcl50IFae5WKFesKwekVnG0gnkIpYCm"], ["created_at", "2019-12-06 02:12:29.017907"], ["updated_at", "2019-12-06 02:12:29.017907"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.020256"], ["updated_at", "2019-12-06 02:12:29.020256"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1171” for 127.0.0.1 at 2019-12-05 23:12:29 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.022646"], ["last_sign_in_at", "2019-12-06 02:12:29.022646"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.023139"], ["id", 1367]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1171"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1171], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:12:29.026930"], ["id", 1171]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1171 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZyaErci80YRqMlQO8a6ISu7P3.UjQcVbw4lGEpI.aLOPS4iSgDtku"], ["created_at", "2019-12-06 02:12:29.035610"], ["updated_at", "2019-12-06 02:12:29.035610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.037849"], ["updated_at", "2019-12-06 02:12:29.037849"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1172” for 127.0.0.1 at 2019-12-05 23:12:29 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.040593"], ["last_sign_in_at", "2019-12-06 02:12:29.040593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.041116"], ["id", 1368]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1172"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1172], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:12:29.044921"], ["id", 1172]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1172 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EEEt4tDp4VOaKVuV2A/HtuJEh4zajXi7iXiO9OTCTK5bP.AG1TBVC"], ["created_at", "2019-12-06 02:12:29.054682"], ["updated_at", "2019-12-06 02:12:29.054682"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.056836"], ["updated_at", "2019-12-06 02:12:29.056836"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1173” for 127.0.0.1 at 2019-12-05 23:12:29 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.059309"], ["last_sign_in_at", "2019-12-06 02:12:29.059309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.059922"], ["id", 1369]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1173"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1173], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hhbg5Hr/bncw41vGEq9DduyilOno8So.yVZfw94NEqQk0wSVi6L5m"], ["created_at", "2019-12-06 02:12:29.074073"], ["updated_at", "2019-12-06 02:12:29.074073"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.076351"], ["updated_at", "2019-12-06 02:12:29.076351"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1174” for 127.0.0.1 at 2019-12-05 23:12:29 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.078816"], ["last_sign_in_at", "2019-12-06 02:12:29.078816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.079741"], ["id", 1370]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1174"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1174], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$janA5.ZPZRrWNboX1h6UaeO5I5agD4piLASsUoltVLTu2bfW9LViu"], ["created_at", "2019-12-06 02:12:29.093837"], ["updated_at", "2019-12-06 02:12:29.093837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:12:29 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.096743"], ["last_sign_in_at", "2019-12-06 02:12:29.096743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.097429"], ["id", 1371]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wvzDQGcYsA/2LvsWNAYDquY.lla4T/zDNyedFOgCbtFBOEp1bDD9K"], ["created_at", "2019-12-06 02:12:29.107801"], ["updated_at", "2019-12-06 02:12:29.107801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.110190"], ["updated_at", "2019-12-06 02:12:29.110190"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1175” for 127.0.0.1 at 2019-12-05 23:12:29 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.112137"], ["last_sign_in_at", "2019-12-06 02:12:29.112137"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.112867"], ["id", 1372]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1175"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1175], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1175]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a5bNY/9mszizPV5c2qMLIulzVbylSpah3p8E0erRCYStmHf17uJhW"], ["created_at", "2019-12-06 02:12:29.124018"], ["updated_at", "2019-12-06 02:12:29.124018"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.126178"], ["updated_at", "2019-12-06 02:12:29.126178"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1176” for 127.0.0.1 at 2019-12-05 23:12:29 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.128131"], ["last_sign_in_at", "2019-12-06 02:12:29.128131"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.128620"], ["id", 1373]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1176"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1176], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1176]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OTiXA8EZ6STjagRARSv/UeqguXMS5veuLTQz.yhpkRNyBqAuPkkwi"], ["created_at", "2019-12-06 02:12:29.141238"], ["updated_at", "2019-12-06 02:12:29.141238"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.143480"], ["updated_at", "2019-12-06 02:12:29.143480"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1177” for 127.0.0.1 at 2019-12-05 23:12:29 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.145330"], ["last_sign_in_at", "2019-12-06 02:12:29.145330"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.145910"], ["id", 1374]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1177"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$t/gbd1.ANVfEluu1vN75zey.9hEb7H8WzjWUC1ScqG77.3cJbMpwO"], ["created_at", "2019-12-06 02:12:29.155220"], ["updated_at", "2019-12-06 02:12:29.155220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:12:29.157422"], ["updated_at", "2019-12-06 02:12:29.157422"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1178” for 127.0.0.1 at 2019-12-05 23:12:29 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:12:29.159326"], ["last_sign_in_at", "2019-12-06 02:12:29.159326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:12:29.159904"], ["id", 1375]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1178"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DTaZwIWkDxwekmTXx7pC9O/o340nRJHhH/b8pMhiH2AbCK4AIul8G"], ["created_at", "2019-12-06 02:13:26.292676"], ["updated_at", "2019-12-06 02:13:26.292676"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:26.301328"], ["updated_at", "2019-12-06 02:13:26.301328"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1179"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1179], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1179')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 150ms (Views: 107.2ms | ActiveRecord: 2.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tYavP1OE3ORjBYcVTSoC1.s2k04T.poh1RaG5fLmemnmOO7SUy0/q"], ["created_at", "2019-12-06 02:13:26.462374"], ["updated_at", "2019-12-06 02:13:26.462374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:26.465172"], ["updated_at", "2019-12-06 02:13:26.465172"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1180], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1377], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1377], ["room_id", 1180], ["created_at", "2019-12-06 02:13:26.502701"], ["updated_at", "2019-12-06 02:13:26.502701"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1180"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1180], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1180')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8Rz/w/ULZGYyuiae2LRgxu7q2f9ypS7MQ6fptsckA7A70.YM19TzG"], ["created_at", "2019-12-06 02:13:26.517203"], ["updated_at", "2019-12-06 02:13:26.517203"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:26.519494"], ["updated_at", "2019-12-06 02:13:26.519494"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1181], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1378], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1378], ["room_id", 1181], ["created_at", "2019-12-06 02:13:26.523758"], ["updated_at", "2019-12-06 02:13:26.523758"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1181"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1181], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1181')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yHnATUhizpvjD0OHcEX/yerde/Bfg1VjEaMEVcwzi9JOy7NcRB/1G"], ["created_at", "2019-12-06 02:13:26.536638"], ["updated_at", "2019-12-06 02:13:26.536638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:26.538923"], ["updated_at", "2019-12-06 02:13:26.538923"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1182], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1379], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1379], ["room_id", 1182], ["created_at", "2019-12-06 02:13:26.543252"], ["updated_at", "2019-12-06 02:13:26.543252"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1182"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1182], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1182')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JOXxcJqHTHIkec74Dyy/PuVFDL8/Hpzl4D.KfHHI7iOvqxeMq4mDi"], ["created_at", "2019-12-06 02:13:26.587350"], ["updated_at", "2019-12-06 02:13:26.587350"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:26.589622"], ["updated_at", "2019-12-06 02:13:26.589622"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1183], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1380], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1380], ["room_id", 1183], ["created_at", "2019-12-06 02:13:26.593740"], ["updated_at", "2019-12-06 02:13:26.593740"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1183"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1183], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1183')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 105ms (Views: 72.5ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iQdUZOJKoP4c.nj1Jc6mlOD8yQNNNLrYOCivq2oLEJcbTwDKy58e2"], ["created_at", "2019-12-06 02:13:27.158572"], ["updated_at", "2019-12-06 02:13:27.158572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.160625"], ["updated_at", "2019-12-06 02:13:27.160625"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.177319"], ["last_sign_in_at", "2019-12-06 02:13:27.177319"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.178178"], ["id", 1381]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1184"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1184], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1381], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1381], ["room_id", 1184], ["created_at", "2019-12-06 02:13:27.197708"], ["updated_at", "2019-12-06 02:13:27.197708"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1184], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$G7tLIGvQqNMDCrWQtqQi1.G5agoVzODABTZm0.DoLqrJsWzGoctRG"], ["created_at", "2019-12-06 02:13:27.206527"], ["updated_at", "2019-12-06 02:13:27.206527"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.208539"], ["updated_at", "2019-12-06 02:13:27.208539"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.210641"], ["last_sign_in_at", "2019-12-06 02:13:27.210641"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.211106"], ["id", 1382]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1185"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1185], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1382], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1382], ["room_id", 1185], ["created_at", "2019-12-06 02:13:27.216633"], ["updated_at", "2019-12-06 02:13:27.216633"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gs0O9Tt7QQBbbF7BLcfPT.x3qtTfia710N.Y98MNMJlpKzAMP4l.W"], ["created_at", "2019-12-06 02:13:27.228468"], ["updated_at", "2019-12-06 02:13:27.228468"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.230400"], ["updated_at", "2019-12-06 02:13:27.230400"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.233233"], ["last_sign_in_at", "2019-12-06 02:13:27.233233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.233796"], ["id", 1383]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1186"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1186], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FU2q2tyuJUvOhpO0FZgNt.qjv0L57DU.sZA4AS06W/ZdaW134f5B."], ["created_at", "2019-12-06 02:13:27.241836"], ["updated_at", "2019-12-06 02:13:27.241836"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.244584"], ["updated_at", "2019-12-06 02:13:27.244584"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.246742"], ["last_sign_in_at", "2019-12-06 02:13:27.246742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.247222"], ["id", 1384]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1187"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5huWGBSGZ8E.NTMPobstCeR78ND38ZdVFLsntaNIfJPfDs.55MUMG"], ["created_at", "2019-12-06 02:13:27.256762"], ["updated_at", "2019-12-06 02:13:27.256762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.258945"], ["updated_at", "2019-12-06 02:13:27.258945"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1188], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1385], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1385], ["room_id", 1188], ["created_at", "2019-12-06 02:13:27.263073"], ["updated_at", "2019-12-06 02:13:27.263073"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1188” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.265995"], ["last_sign_in_at", "2019-12-06 02:13:27.265995"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.266515"], ["id", 1385]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1188"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1188], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1188')
Rendered appointments/show.html.erb within layouts/application (20.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 366ms (Views: 349.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$l1oKrecAXz4jBiPMbTzsqOfyGytjRpp5n3zw85kkJXlsyuECfOOIi"], ["created_at", "2019-12-06 02:13:27.642373"], ["updated_at", "2019-12-06 02:13:27.642373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.644647"], ["updated_at", "2019-12-06 02:13:27.644647"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1189], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1386], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1386], ["room_id", 1189], ["created_at", "2019-12-06 02:13:27.650148"], ["updated_at", "2019-12-06 02:13:27.650148"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1189], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1386], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1386], ["room_id", 1189], ["created_at", "2019-12-06 02:13:27.654219"], ["updated_at", "2019-12-06 02:13:27.654219"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.656594"], ["last_sign_in_at", "2019-12-06 02:13:27.656594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.657092"], ["id", 1386]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1386]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 35ms (Views: 4.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OBs/x57xbPdK.mQ0NgfnJOQU4vLyf0eNlXAJVmKwNN5xGUx3Fiiwi"], ["created_at", "2019-12-06 02:13:27.700677"], ["updated_at", "2019-12-06 02:13:27.700677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.703001"], ["updated_at", "2019-12-06 02:13:27.703001"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1190], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1387], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1387], ["room_id", 1190], ["created_at", "2019-12-06 02:13:27.707033"], ["updated_at", "2019-12-06 02:13:27.707033"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1190], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1387], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1387], ["room_id", 1190], ["created_at", "2019-12-06 02:13:27.710980"], ["updated_at", "2019-12-06 02:13:27.710980"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.713370"], ["last_sign_in_at", "2019-12-06 02:13:27.713370"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.714052"], ["id", 1387]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1387]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gH02FujeDUFauatnQr7WBuU18V3sWN1eatJE/tVq1Ve7V/dwi953m"], ["created_at", "2019-12-06 02:13:27.728445"], ["updated_at", "2019-12-06 02:13:27.728445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.730839"], ["updated_at", "2019-12-06 02:13:27.730839"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1191], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1388], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1388], ["room_id", 1191], ["created_at", "2019-12-06 02:13:27.735444"], ["updated_at", "2019-12-06 02:13:27.735444"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/629” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.737800"], ["last_sign_in_at", "2019-12-06 02:13:27.737800"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.738325"], ["id", 1388]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"629"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 629], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 629]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4Eto7AxtVod6Kv7R7amt8eEqHgVW1XFBIBWecrbw2jeYx6v6uRoVm"], ["created_at", "2019-12-06 02:13:27.752786"], ["updated_at", "2019-12-06 02:13:27.752786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.755489"], ["last_sign_in_at", "2019-12-06 02:13:27.755489"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.756200"], ["id", 1389]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 35ms (Views: 18.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bayINlAat1qomXOgpCac4uBuLVvLeA58oT2H2Edvu5EaK0qguTKYO"], ["created_at", "2019-12-06 02:13:27.800702"], ["updated_at", "2019-12-06 02:13:27.800702"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.802968"], ["updated_at", "2019-12-06 02:13:27.802968"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1192], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1390], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1390], ["room_id", 1192], ["created_at", "2019-12-06 02:13:27.807239"], ["updated_at", "2019-12-06 02:13:27.807239"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1192], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1390], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1390], ["room_id", 1192], ["created_at", "2019-12-06 02:13:27.810922"], ["updated_at", "2019-12-06 02:13:27.810922"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.813151"], ["last_sign_in_at", "2019-12-06 02:13:27.813151"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.813660"], ["id", 1390]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1192], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1390], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1390], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vb/3ve7FgQoyVNL0GTwqvuVKAE1oIMcgNTRrCCg3WxHGr2V9MvDra"], ["created_at", "2019-12-06 02:13:27.827174"], ["updated_at", "2019-12-06 02:13:27.827174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.829243"], ["updated_at", "2019-12-06 02:13:27.829243"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1193], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1391], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1391], ["room_id", 1193], ["created_at", "2019-12-06 02:13:27.833385"], ["updated_at", "2019-12-06 02:13:27.833385"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1193], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1391], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1391], ["room_id", 1193], ["created_at", "2019-12-06 02:13:27.837632"], ["updated_at", "2019-12-06 02:13:27.837632"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.840207"], ["last_sign_in_at", "2019-12-06 02:13:27.840207"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.840703"], ["id", 1391]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1193], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1391], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1391], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UvzJ7LQZIWUTV0tDDekXweRnt3Kk7hiPFMFySrP9JtShI9WAAXikG"], ["created_at", "2019-12-06 02:13:27.859044"], ["updated_at", "2019-12-06 02:13:27.859044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.861745"], ["updated_at", "2019-12-06 02:13:27.861745"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1194], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1392], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1392], ["room_id", 1194], ["created_at", "2019-12-06 02:13:27.868178"], ["updated_at", "2019-12-06 02:13:27.868178"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1194], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1392], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1392], ["room_id", 1194], ["created_at", "2019-12-06 02:13:27.873300"], ["updated_at", "2019-12-06 02:13:27.873300"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.876245"], ["last_sign_in_at", "2019-12-06 02:13:27.876245"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.876886"], ["id", 1392]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uNd4DgHh13Ym.Ipn5Q4uKO4xsmGtKUmJQRyaeH.E20PhxSTb3wgoC"], ["created_at", "2019-12-06 02:13:27.893042"], ["updated_at", "2019-12-06 02:13:27.893042"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:27.895608"], ["updated_at", "2019-12-06 02:13:27.895608"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1195], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1393], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1393], ["room_id", 1195], ["created_at", "2019-12-06 02:13:27.900832"], ["updated_at", "2019-12-06 02:13:27.900832"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1195], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1393], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1393], ["room_id", 1195], ["created_at", "2019-12-06 02:13:27.905439"], ["updated_at", "2019-12-06 02:13:27.905439"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.907930"], ["last_sign_in_at", "2019-12-06 02:13:27.907930"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.908642"], ["id", 1393]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PRwdYJw2pDbnyM6FgOyH/uVkMP80qh5yw39U96eJJ4OsHxCw7/9XK"], ["created_at", "2019-12-06 02:13:27.924830"], ["updated_at", "2019-12-06 02:13:27.924830"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:13:27 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:27.928076"], ["last_sign_in_at", "2019-12-06 02:13:27.928076"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:27.928591"], ["id", 1394]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 64ms (Views: 48.7ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mFhLKtDLbCPBWt5D2J8X.Oh2i9DFJl8DjYYvQNouYzOF8QR3nkIBS"], ["created_at", "2019-12-06 02:13:28.007336"], ["updated_at", "2019-12-06 02:13:28.007336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.010128"], ["last_sign_in_at", "2019-12-06 02:13:28.010128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.010755"], ["id", 1395]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$23FT1UIj7cclCss/5MogQ.sIy5/pVqRnEnJkb9BNozw2XoyTPsqfK"], ["created_at", "2019-12-06 02:13:28.024000"], ["updated_at", "2019-12-06 02:13:28.024000"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.026552"], ["last_sign_in_at", "2019-12-06 02:13:28.026552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.027057"], ["id", 1396]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 4.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A0.DbOHlkZzpuQlscIRPiO4g/ETm.Z7v04RyAVVUZLDIcKtS.LYf."], ["created_at", "2019-12-06 02:13:28.057467"], ["updated_at", "2019-12-06 02:13:28.057467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.060272"], ["last_sign_in_at", "2019-12-06 02:13:28.060272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.061060"], ["id", 1397]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DNHWJs3aWUNMibNUuo6SmuI4vM/SMj2ZEtTudWZTOAE70bA0kuu52"], ["created_at", "2019-12-06 02:13:28.087815"], ["updated_at", "2019-12-06 02:13:28.087815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.090768"], ["updated_at", "2019-12-06 02:13:28.090768"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1196” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.093661"], ["last_sign_in_at", "2019-12-06 02:13:28.093661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.094221"], ["id", 1398]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1196"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1196], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 26ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2B3vmvX96o/5GMLTdfHgtuCAfvM.IDiKq2VF3Vl/FIA3IRr9Tbhdi"], ["created_at", "2019-12-06 02:13:28.129436"], ["updated_at", "2019-12-06 02:13:28.129436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.132051"], ["updated_at", "2019-12-06 02:13:28.132051"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1197” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.134438"], ["last_sign_in_at", "2019-12-06 02:13:28.134438"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.135155"], ["id", 1399]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1197"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1197], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.144844"], ["updated_at", "2019-12-06 02:13:28.144844"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1198” for 127.0.0.1 at 2019-12-05 23:13:28 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1198"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U9V6U7JeeIGHDz/T2lnjduI1bp/OFGxGAV8INK0EDne.JURSHY8cO"], ["created_at", "2019-12-06 02:13:28.155982"], ["updated_at", "2019-12-06 02:13:28.155982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.158250"], ["updated_at", "2019-12-06 02:13:28.158250"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1199/edit” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.160341"], ["last_sign_in_at", "2019-12-06 02:13:28.160341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.160864"], ["id", 1400]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1199"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1199], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$12APhJpTs7Do6mUv9EaJ1.uKlmStMv8or3LfCJ.OnAAuCMHSGlpR2"], ["created_at", "2019-12-06 02:13:28.190320"], ["updated_at", "2019-12-06 02:13:28.190320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.193497"], ["updated_at", "2019-12-06 02:13:28.193497"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1200/edit” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.196305"], ["last_sign_in_at", "2019-12-06 02:13:28.196305"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.196920"], ["id", 1401]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1200"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1200], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.208126"], ["updated_at", "2019-12-06 02:13:28.208126"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1201” for 127.0.0.1 at 2019-12-05 23:13:28 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1201"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NrYbDzY.6DayDCS/GgnA2ec9P5IU8Fx6aiNW3.rNl85Y8wi0fFNqS"], ["created_at", "2019-12-06 02:13:28.220181"], ["updated_at", "2019-12-06 02:13:28.220181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.222543"], ["last_sign_in_at", "2019-12-06 02:13:28.222543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.222987"], ["id", 1402]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.226323"], ["updated_at", "2019-12-06 02:13:28.226323"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3JmR7hEY9hL5Qy22eDn1pu4y7TCOFX3kdr4eHpY2w8RuhXa7wn6RC"], ["created_at", "2019-12-06 02:13:28.235012"], ["updated_at", "2019-12-06 02:13:28.235012"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.237609"], ["last_sign_in_at", "2019-12-06 02:13:28.237609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.238099"], ["id", 1403]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.241009"], ["updated_at", "2019-12-06 02:13:28.241009"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q7z4JWNUFj6giDSBhZw8p.Q8VmMseAxMHLu7vDqffh4PDq2pk7yPO"], ["created_at", "2019-12-06 02:13:28.248810"], ["updated_at", "2019-12-06 02:13:28.248810"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.251455"], ["last_sign_in_at", "2019-12-06 02:13:28.251455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.251978"], ["id", 1404]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/eahOdXN55GJnI5DlBe/VOiT5uhDekPpT87EEqeccNJWfTsGT1u3a"], ["created_at", "2019-12-06 02:13:28.264069"], ["updated_at", "2019-12-06 02:13:28.264069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.267242"], ["last_sign_in_at", "2019-12-06 02:13:28.267242"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.267713"], ["id", 1405]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yEUHRhxtkOkN20aqy5M11OtVajZilpGai44ZLzbI6oQXqVMU0hyQS"], ["created_at", "2019-12-06 02:13:28.277698"], ["updated_at", "2019-12-06 02:13:28.277698"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.280090"], ["last_sign_in_at", "2019-12-06 02:13:28.280090"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.280736"], ["id", 1406]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y4NBp.p4ETHqmy5dj5F9VuZV7c0tu/dtov.oXVxVMxwUfrOCj3ARG"], ["created_at", "2019-12-06 02:13:28.291483"], ["updated_at", "2019-12-06 02:13:28.291483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.293888"], ["updated_at", "2019-12-06 02:13:28.293888"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1204” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.296103"], ["last_sign_in_at", "2019-12-06 02:13:28.296103"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.296581"], ["id", 1407]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1204"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1204], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:13:28.300963"], ["id", 1204]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1204 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SQNUkcJhu4n.ltyUFYdss.XbfYTvN4CcDwT9Al8FRis.99xABhQyu"], ["created_at", "2019-12-06 02:13:28.308882"], ["updated_at", "2019-12-06 02:13:28.308882"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.310939"], ["updated_at", "2019-12-06 02:13:28.310939"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1205” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.313029"], ["last_sign_in_at", "2019-12-06 02:13:28.313029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.313510"], ["id", 1408]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1205"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1205], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:13:28.318350"], ["id", 1205]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1205 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oiic0gT/9TXfJRTLyLEWLOvy82rf56u1LdvHg6cQ8RsGMkDXVLNBm"], ["created_at", "2019-12-06 02:13:28.326211"], ["updated_at", "2019-12-06 02:13:28.326211"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.328360"], ["updated_at", "2019-12-06 02:13:28.328360"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1206” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.330478"], ["last_sign_in_at", "2019-12-06 02:13:28.330478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.331100"], ["id", 1409]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1206"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1206], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AaRTPB4i/GiMXRKmKbAPcugo0MljP.v0s.Gf5Bp/6iDRVbGtiGC1u"], ["created_at", "2019-12-06 02:13:28.344578"], ["updated_at", "2019-12-06 02:13:28.344578"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.346661"], ["updated_at", "2019-12-06 02:13:28.346661"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1207” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.349039"], ["last_sign_in_at", "2019-12-06 02:13:28.349039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.349583"], ["id", 1410]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1207"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1207], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9PraFGd9WwxhrhPIvy1kSeVUPOK6X7f/d5S/NEJmx229JzVcsIIhq"], ["created_at", "2019-12-06 02:13:28.363956"], ["updated_at", "2019-12-06 02:13:28.363956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.367022"], ["last_sign_in_at", "2019-12-06 02:13:28.367022"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.367548"], ["id", 1411]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Kj7IGp9HSrJxlHUxbkv4Lu810aetiMzp9C9BEN1dkWU9whOz5pG4."], ["created_at", "2019-12-06 02:13:28.377819"], ["updated_at", "2019-12-06 02:13:28.377819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.380851"], ["updated_at", "2019-12-06 02:13:28.380851"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1208” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.383072"], ["last_sign_in_at", "2019-12-06 02:13:28.383072"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.383591"], ["id", 1412]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1208"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1208], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1208]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HTKfoCWja5.T28gfNJozk.E5GBu1r3a.BXqDfz1CbDnGAX5v4jNA2"], ["created_at", "2019-12-06 02:13:28.394865"], ["updated_at", "2019-12-06 02:13:28.394865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.397065"], ["updated_at", "2019-12-06 02:13:28.397065"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1209” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.399354"], ["last_sign_in_at", "2019-12-06 02:13:28.399354"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.400036"], ["id", 1413]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1209"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1209], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1209]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bQiVlmvlRgJ/2wNCbt8.7eH0otA0aGM3I7LsVEB.RGZDW4EJqS5zu"], ["created_at", "2019-12-06 02:13:28.411876"], ["updated_at", "2019-12-06 02:13:28.411876"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.414321"], ["updated_at", "2019-12-06 02:13:28.414321"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1210” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.416583"], ["last_sign_in_at", "2019-12-06 02:13:28.416583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.417115"], ["id", 1414]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1210"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$acpAIIVmGb00fpRDBM025u0p.llj60Dra62gg04OImqQKTYiEaR/u"], ["created_at", "2019-12-06 02:13:28.426365"], ["updated_at", "2019-12-06 02:13:28.426365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:13:28.428668"], ["updated_at", "2019-12-06 02:13:28.428668"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1211” for 127.0.0.1 at 2019-12-05 23:13:28 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:13:28.430868"], ["last_sign_in_at", "2019-12-06 02:13:28.430868"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:13:28.432087"], ["id", 1415]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1211"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (1.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rQXYbWsZ/XpD9i2C8Lt5dO2vOTPZIDzbXC/IPJHnLtM7mUAM/7Ne6"], ["created_at", "2019-12-06 02:14:13.998615"], ["updated_at", "2019-12-06 02:14:13.998615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.007195"], ["updated_at", "2019-12-06 02:14:14.007195"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1212"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1212], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1212')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 151ms (Views: 108.1ms | ActiveRecord: 2.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lHNLeQr1L6N5kVnghIUCguKKRVOgRnoMlq2CHRna9Evxxmr8aVvPO"], ["created_at", "2019-12-06 02:14:14.169064"], ["updated_at", "2019-12-06 02:14:14.169064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.171106"], ["updated_at", "2019-12-06 02:14:14.171106"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1213], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1417], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1417], ["room_id", 1213], ["created_at", "2019-12-06 02:14:14.207315"], ["updated_at", "2019-12-06 02:14:14.207315"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1213"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1213], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1213')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$741oNwl8Ef85e26Z9CEpDetkdJu5NSk5iwYvDkqo9EGaTiRYZYWz6"], ["created_at", "2019-12-06 02:14:14.221466"], ["updated_at", "2019-12-06 02:14:14.221466"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.223692"], ["updated_at", "2019-12-06 02:14:14.223692"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1214], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1418], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1418], ["room_id", 1214], ["created_at", "2019-12-06 02:14:14.227954"], ["updated_at", "2019-12-06 02:14:14.227954"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1214"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1214], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1214')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JepLj33qSVK5RJmgQuBxLexOt3gOd0UkA5F5/PF1PnlabYEIR5aXq"], ["created_at", "2019-12-06 02:14:14.240564"], ["updated_at", "2019-12-06 02:14:14.240564"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.242755"], ["updated_at", "2019-12-06 02:14:14.242755"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1215], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1419], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1419], ["room_id", 1215], ["created_at", "2019-12-06 02:14:14.246841"], ["updated_at", "2019-12-06 02:14:14.246841"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1215"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1215], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1215')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cjzoiEKw.fkf9LA/W6v1WuVRwZFNI19.stmZ5Fz3umcOHIMzb8qk2"], ["created_at", "2019-12-06 02:14:14.257968"], ["updated_at", "2019-12-06 02:14:14.257968"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.260304"], ["updated_at", "2019-12-06 02:14:14.260304"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1216], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1420], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1420], ["room_id", 1216], ["created_at", "2019-12-06 02:14:14.263910"], ["updated_at", "2019-12-06 02:14:14.263910"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1216"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1216], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1216')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 103ms (Views: 72.4ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$56XJBQxZ/IJmL1i5EqbyhOnGWmCGm.PPPqOlWKzSLJ1tFMScq2DNi"], ["created_at", "2019-12-06 02:14:14.830315"], ["updated_at", "2019-12-06 02:14:14.830315"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.832407"], ["updated_at", "2019-12-06 02:14:14.832407"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:14:14 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:14.848356"], ["last_sign_in_at", "2019-12-06 02:14:14.848356"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:14.849185"], ["id", 1421]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1217"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1217], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1421], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1421], ["room_id", 1217], ["created_at", "2019-12-06 02:14:14.866474"], ["updated_at", "2019-12-06 02:14:14.866474"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1217], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zzb4sj0aQ3OXvAxNVhUn2uNFPwMF6f1N40H6pXz/YBvJvLntLFNXS"], ["created_at", "2019-12-06 02:14:14.875178"], ["updated_at", "2019-12-06 02:14:14.875178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.877341"], ["updated_at", "2019-12-06 02:14:14.877341"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:14:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:14.879453"], ["last_sign_in_at", "2019-12-06 02:14:14.879453"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:14.879903"], ["id", 1422]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1218"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1218], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1422], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1422], ["room_id", 1218], ["created_at", "2019-12-06 02:14:14.885290"], ["updated_at", "2019-12-06 02:14:14.885290"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$S5aIk0C8vO.w1jaA5vavlOUBMNNqO68H2SX0rTVk4DRaSI6Q7Xkc6"], ["created_at", "2019-12-06 02:14:14.893870"], ["updated_at", "2019-12-06 02:14:14.893870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.895900"], ["updated_at", "2019-12-06 02:14:14.895900"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:14:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:14.898042"], ["last_sign_in_at", "2019-12-06 02:14:14.898042"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:14.898510"], ["id", 1423]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1219"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1219], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$l7322dT9Rn8iWpYGKvwMfOK5SYwgMun/uNL.pPBEZlXSJg/eDouau"], ["created_at", "2019-12-06 02:14:14.908038"], ["updated_at", "2019-12-06 02:14:14.908038"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.910280"], ["updated_at", "2019-12-06 02:14:14.910280"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:14:14 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:14.912542"], ["last_sign_in_at", "2019-12-06 02:14:14.912542"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:14.913013"], ["id", 1424]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1220"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6MXigQ97rOjMvrd/Sflk/Oz2jdjZXdWh0qxovH2BBeZBWbeoCkODu"], ["created_at", "2019-12-06 02:14:14.924137"], ["updated_at", "2019-12-06 02:14:14.924137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:14.926366"], ["updated_at", "2019-12-06 02:14:14.926366"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1221], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1425], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1425], ["room_id", 1221], ["created_at", "2019-12-06 02:14:14.930355"], ["updated_at", "2019-12-06 02:14:14.930355"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1221” for 127.0.0.1 at 2019-12-05 23:14:14 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:14.932905"], ["last_sign_in_at", "2019-12-06 02:14:14.932905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:14.937423"], ["id", 1425]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1221"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1221], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1221')
Rendered appointments/show.html.erb within layouts/application (21.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 346ms (Views: 328.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pj88.oIuBzJ8J3tqoguB7e5JVC.E.5.8UcVHZavQBRA.nySjVYRQu"], ["created_at", "2019-12-06 02:14:15.293005"], ["updated_at", "2019-12-06 02:14:15.293005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.295240"], ["updated_at", "2019-12-06 02:14:15.295240"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1222], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1426], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1426], ["room_id", 1222], ["created_at", "2019-12-06 02:14:15.299689"], ["updated_at", "2019-12-06 02:14:15.299689"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1222], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1426], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1426], ["room_id", 1222], ["created_at", "2019-12-06 02:14:15.303787"], ["updated_at", "2019-12-06 02:14:15.303787"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.306282"], ["last_sign_in_at", "2019-12-06 02:14:15.306282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.306838"], ["id", 1426]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1426]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 36ms (Views: 4.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$f02zUnqe8dPidQNe9QN8Q.XjoxyJs2TSVrmxMLzoU.tgQpWKElOM."], ["created_at", "2019-12-06 02:14:15.351534"], ["updated_at", "2019-12-06 02:14:15.351534"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.353895"], ["updated_at", "2019-12-06 02:14:15.353895"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1223], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1427], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1427], ["room_id", 1223], ["created_at", "2019-12-06 02:14:15.358119"], ["updated_at", "2019-12-06 02:14:15.358119"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1223], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1427], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1427], ["room_id", 1223], ["created_at", "2019-12-06 02:14:15.374800"], ["updated_at", "2019-12-06 02:14:15.374800"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.377338"], ["last_sign_in_at", "2019-12-06 02:14:15.377338"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.377892"], ["id", 1427]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1427]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$d3lso8524/QoQcvuScznpOz0gukSBwDgX.W7ylb.uua2O/MHzSgpq"], ["created_at", "2019-12-06 02:14:15.391803"], ["updated_at", "2019-12-06 02:14:15.391803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.393946"], ["updated_at", "2019-12-06 02:14:15.393946"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1224], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1428], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1428], ["room_id", 1224], ["created_at", "2019-12-06 02:14:15.397947"], ["updated_at", "2019-12-06 02:14:15.397947"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/649” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.400464"], ["last_sign_in_at", "2019-12-06 02:14:15.400464"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.400996"], ["id", 1428]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"649"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 649], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 649]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ryTNHRhe9WkUnjM3oVnrg.n1nNAJd2INIUWVPR/heI7J3H1f6AKrq"], ["created_at", "2019-12-06 02:14:15.414823"], ["updated_at", "2019-12-06 02:14:15.414823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.417708"], ["last_sign_in_at", "2019-12-06 02:14:15.417708"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.418478"], ["id", 1429]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 35ms (Views: 18.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E0UFuyLL2/1XnKp7HVsnA.W6/kPDZyi6hOspyTGFm9zxC/7WeraAW"], ["created_at", "2019-12-06 02:14:15.463254"], ["updated_at", "2019-12-06 02:14:15.463254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.465716"], ["updated_at", "2019-12-06 02:14:15.465716"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1225], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1430], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1430], ["room_id", 1225], ["created_at", "2019-12-06 02:14:15.470338"], ["updated_at", "2019-12-06 02:14:15.470338"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1225], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1430], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1430], ["room_id", 1225], ["created_at", "2019-12-06 02:14:15.474256"], ["updated_at", "2019-12-06 02:14:15.474256"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.476715"], ["last_sign_in_at", "2019-12-06 02:14:15.476715"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.477262"], ["id", 1430]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1225], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1430], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1430], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0OR0kHBduStnZc9H05GSGeTPWNMVTmGa7C2MtTgJS9J0dbWw6/bn2"], ["created_at", "2019-12-06 02:14:15.491453"], ["updated_at", "2019-12-06 02:14:15.491453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.493574"], ["updated_at", "2019-12-06 02:14:15.493574"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1226], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1431], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1431], ["room_id", 1226], ["created_at", "2019-12-06 02:14:15.497490"], ["updated_at", "2019-12-06 02:14:15.497490"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1226], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1431], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1431], ["room_id", 1226], ["created_at", "2019-12-06 02:14:15.502047"], ["updated_at", "2019-12-06 02:14:15.502047"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.504449"], ["last_sign_in_at", "2019-12-06 02:14:15.504449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.504971"], ["id", 1431]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1226], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1431], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1431], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KQeoOwf6CLgzjLWZzfzYMuecFRvi8fhC81kINXb9ynhig1/OlHm5y"], ["created_at", "2019-12-06 02:14:15.519852"], ["updated_at", "2019-12-06 02:14:15.519852"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.522140"], ["updated_at", "2019-12-06 02:14:15.522140"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1227], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1432], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1432], ["room_id", 1227], ["created_at", "2019-12-06 02:14:15.526317"], ["updated_at", "2019-12-06 02:14:15.526317"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1227], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1432], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1432], ["room_id", 1227], ["created_at", "2019-12-06 02:14:15.530369"], ["updated_at", "2019-12-06 02:14:15.530369"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.533104"], ["last_sign_in_at", "2019-12-06 02:14:15.533104"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.533725"], ["id", 1432]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TFhZd5AFhZriFSNg5oWrYuSLX1x/nWdAY0AOPeyHs.b7edPuCDrrK"], ["created_at", "2019-12-06 02:14:15.545360"], ["updated_at", "2019-12-06 02:14:15.545360"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.547702"], ["updated_at", "2019-12-06 02:14:15.547702"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1228], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1433], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1433], ["room_id", 1228], ["created_at", "2019-12-06 02:14:15.552656"], ["updated_at", "2019-12-06 02:14:15.552656"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1228], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1433], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1433], ["room_id", 1228], ["created_at", "2019-12-06 02:14:15.556612"], ["updated_at", "2019-12-06 02:14:15.556612"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.558870"], ["last_sign_in_at", "2019-12-06 02:14:15.558870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.559397"], ["id", 1433]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d8XVaudz9WotYrMNa7fmZeBKV/R3tpwf9ECfOhCU6vTl.pFz8AT9C"], ["created_at", "2019-12-06 02:14:15.574070"], ["updated_at", "2019-12-06 02:14:15.574070"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.576882"], ["last_sign_in_at", "2019-12-06 02:14:15.576882"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.577497"], ["id", 1434]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.6ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 65ms (Views: 48.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QA5/sYKNtdiJ8ccd3CuMaOCQkpwqdX.rKVdmmH5yadtV42uaEQGqK"], ["created_at", "2019-12-06 02:14:15.656080"], ["updated_at", "2019-12-06 02:14:15.656080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.658869"], ["last_sign_in_at", "2019-12-06 02:14:15.658869"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.660073"], ["id", 1435]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lO9NBp3C2iP12RmLFLupXuzTAkVtM0tGAJ1S0z7qWrTaKaT0lQIcK"], ["created_at", "2019-12-06 02:14:15.672484"], ["updated_at", "2019-12-06 02:14:15.672484"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.675809"], ["last_sign_in_at", "2019-12-06 02:14:15.675809"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.676659"], ["id", 1436]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 23ms (Views: 6.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vWy3QIBc4fAZcCDbdVcu7uOJWSFtfOQsLyKghpIpRya5Ysh2CMisq"], ["created_at", "2019-12-06 02:14:15.710172"], ["updated_at", "2019-12-06 02:14:15.710172"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.712635"], ["last_sign_in_at", "2019-12-06 02:14:15.712635"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.713338"], ["id", 1437]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F7GAnnffXj8PvS0lOnDzwOTFL7JOlYIonNeg71Qd10AuSdCKeLFW."], ["created_at", "2019-12-06 02:14:15.737984"], ["updated_at", "2019-12-06 02:14:15.737984"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.740876"], ["updated_at", "2019-12-06 02:14:15.740876"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1229” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.743475"], ["last_sign_in_at", "2019-12-06 02:14:15.743475"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.744055"], ["id", 1438]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1229"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1229], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Udo3JiHiMoApcYxLvb0e6uVIJoZLaH.OWOJD73608NCqoSMNolAxW"], ["created_at", "2019-12-06 02:14:15.773085"], ["updated_at", "2019-12-06 02:14:15.773085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.775691"], ["updated_at", "2019-12-06 02:14:15.775691"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1230” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.778407"], ["last_sign_in_at", "2019-12-06 02:14:15.778407"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.778971"], ["id", 1439]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1230"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1230], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.791631"], ["updated_at", "2019-12-06 02:14:15.791631"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1231” for 127.0.0.1 at 2019-12-05 23:14:15 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1231"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XbpVCRHocgeFNETH/vUhBewNKDfOX2qKywwCvitblarnT8ZJX1Wfm"], ["created_at", "2019-12-06 02:14:15.804527"], ["updated_at", "2019-12-06 02:14:15.804527"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.807755"], ["updated_at", "2019-12-06 02:14:15.807755"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1232/edit” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.810260"], ["last_sign_in_at", "2019-12-06 02:14:15.810260"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.810764"], ["id", 1440]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1232"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1232], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 21ms (Views: 4.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jB5Il59Ktz7Wvjfu0.4a7uJliFQ1KmjU4iTQ/s/V4hp8qtAjtrCUO"], ["created_at", "2019-12-06 02:14:15.840268"], ["updated_at", "2019-12-06 02:14:15.840268"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.842500"], ["updated_at", "2019-12-06 02:14:15.842500"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1233/edit” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.844980"], ["last_sign_in_at", "2019-12-06 02:14:15.844980"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.845653"], ["id", 1441]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1233"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1233], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.857856"], ["updated_at", "2019-12-06 02:14:15.857856"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1234” for 127.0.0.1 at 2019-12-05 23:14:15 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1234"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MvauzR1SzzU88MXRCdCCgeeQ3/sSCmJZnhcv.xc2EVUPmtnC.0nSW"], ["created_at", "2019-12-06 02:14:15.870446"], ["updated_at", "2019-12-06 02:14:15.870446"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.873785"], ["last_sign_in_at", "2019-12-06 02:14:15.873785"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.874368"], ["id", 1442]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.877841"], ["updated_at", "2019-12-06 02:14:15.877841"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MFiiESEasvSY.AnuO56sxuVe.5PB/AA5V2nGPKipJsxJ62elHgp2S"], ["created_at", "2019-12-06 02:14:15.886970"], ["updated_at", "2019-12-06 02:14:15.886970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.897196"], ["last_sign_in_at", "2019-12-06 02:14:15.897196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.897746"], ["id", 1443]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.901162"], ["updated_at", "2019-12-06 02:14:15.901162"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dNjCznXSDbOqUeZad9shl.XPQOL.EHw196g6WLOCH5KcjT6C67g8C"], ["created_at", "2019-12-06 02:14:15.908794"], ["updated_at", "2019-12-06 02:14:15.908794"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.911261"], ["last_sign_in_at", "2019-12-06 02:14:15.911261"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.911733"], ["id", 1444]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PFPgjHnKojwa20B9lIRNCuA8N60Uj4B2hxnT3kBBRk0izCkomEHla"], ["created_at", "2019-12-06 02:14:15.922147"], ["updated_at", "2019-12-06 02:14:15.922147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.925240"], ["last_sign_in_at", "2019-12-06 02:14:15.925240"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.925721"], ["id", 1445]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iHZ4GA6OfKy1qB4b.f/pN.6b7y9GD2fcG7Up570zWy2aGYVetuApq"], ["created_at", "2019-12-06 02:14:15.936040"], ["updated_at", "2019-12-06 02:14:15.936040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.938489"], ["last_sign_in_at", "2019-12-06 02:14:15.938489"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.938987"], ["id", 1446]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$scz/L4jDh8HxWJ4rO1LhG.7vvCji9rWxM5P/SfCcfLAB75ZdOeSiq"], ["created_at", "2019-12-06 02:14:15.950539"], ["updated_at", "2019-12-06 02:14:15.950539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.952977"], ["updated_at", "2019-12-06 02:14:15.952977"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1237” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.955160"], ["last_sign_in_at", "2019-12-06 02:14:15.955160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.955661"], ["id", 1447]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1237"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1237], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:14:15.959124"], ["id", 1237]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1237 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9WvkTOhVhaZvSGDa5uu5WuLFzjUdj/hBozmj/QV2Xtbv7nCrVeZza"], ["created_at", "2019-12-06 02:14:15.967299"], ["updated_at", "2019-12-06 02:14:15.967299"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.969515"], ["updated_at", "2019-12-06 02:14:15.969515"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1238” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.971986"], ["last_sign_in_at", "2019-12-06 02:14:15.971986"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.972508"], ["id", 1448]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1238"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1238], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:14:15.976251"], ["id", 1238]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1238 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$seRdQVpilXO9iAmCIf4rIOR43dRZWLS.truT8g.Xw34dpV.ogpB6O"], ["created_at", "2019-12-06 02:14:15.985175"], ["updated_at", "2019-12-06 02:14:15.985175"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:15.987422"], ["updated_at", "2019-12-06 02:14:15.987422"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1239” for 127.0.0.1 at 2019-12-05 23:14:15 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:15.989660"], ["last_sign_in_at", "2019-12-06 02:14:15.989660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:15.990216"], ["id", 1449]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1239"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1239], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1okRDncLNycEKcx1xlQPweLbBHIawiFRNSbd3TDdfeawKclQWhGB2"], ["created_at", "2019-12-06 02:14:16.004312"], ["updated_at", "2019-12-06 02:14:16.004312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:16.006514"], ["updated_at", "2019-12-06 02:14:16.006514"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1240” for 127.0.0.1 at 2019-12-05 23:14:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.009047"], ["last_sign_in_at", "2019-12-06 02:14:16.009047"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.009621"], ["id", 1450]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1240"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1240], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2yOkIRSz9.f2aaZkYkTUVOi3X6h74pyHNaTH4R14C3aw2.hyMILYK"], ["created_at", "2019-12-06 02:14:16.024545"], ["updated_at", "2019-12-06 02:14:16.024545"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:14:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.027144"], ["last_sign_in_at", "2019-12-06 02:14:16.027144"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.027641"], ["id", 1451]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xroIiCTSMkuEwZiD2Zewxei7CBO2hcl7hNyq.ZtCO2z18/9Rsa7Bm"], ["created_at", "2019-12-06 02:14:16.039798"], ["updated_at", "2019-12-06 02:14:16.039798"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:16.042692"], ["updated_at", "2019-12-06 02:14:16.042692"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1241” for 127.0.0.1 at 2019-12-05 23:14:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.044833"], ["last_sign_in_at", "2019-12-06 02:14:16.044833"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.045408"], ["id", 1452]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1241"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1241], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1241]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SCcNObGVkkhj2oCZFuEo1edn16b3NT7e56O3ho3XgpONtnNqHxgk."], ["created_at", "2019-12-06 02:14:16.057486"], ["updated_at", "2019-12-06 02:14:16.057486"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:16.059818"], ["updated_at", "2019-12-06 02:14:16.059818"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1242” for 127.0.0.1 at 2019-12-05 23:14:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.061883"], ["last_sign_in_at", "2019-12-06 02:14:16.061883"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.062570"], ["id", 1453]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1242"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1242], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1242]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rZtxkSqztj0SHL4iE/xD4uJGcH.TNgyqjezbkFPhPvwDA1Yu5nOsm"], ["created_at", "2019-12-06 02:14:16.075871"], ["updated_at", "2019-12-06 02:14:16.075871"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:16.078291"], ["updated_at", "2019-12-06 02:14:16.078291"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1243” for 127.0.0.1 at 2019-12-05 23:14:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.080357"], ["last_sign_in_at", "2019-12-06 02:14:16.080357"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.080908"], ["id", 1454]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1243"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s5SxZeZp.tny2t2.uB7ebO7EKjYu2hNO5VPcWLwyMyqIN/ldyjfvG"], ["created_at", "2019-12-06 02:14:16.091345"], ["updated_at", "2019-12-06 02:14:16.091345"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:14:16.093795"], ["updated_at", "2019-12-06 02:14:16.093795"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1244” for 127.0.0.1 at 2019-12-05 23:14:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:14:16.096120"], ["last_sign_in_at", "2019-12-06 02:14:16.096120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:14:16.096647"], ["id", 1455]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1244"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (8.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (3.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$h7M71t2KgW2RdOmkxiX4XO8jhRtu/o9WomUsIEAal.6KNx.vmk3xK"], ["created_at", "2019-12-06 02:15:21.859858"], ["updated_at", "2019-12-06 02:15:21.859858"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (3.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:21.872265"], ["updated_at", "2019-12-06 02:15:21.872265"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1245"}
Room Load (2.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1245], ["LIMIT", 1]]
Appointment Load (7.0ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1245')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 161ms (Views: 109.1ms | ActiveRecord: 11.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tK8GVE26WiOreS8qEs4of.qRvEb8./DARGNCgkdYYZNqmOsmMUuka"], ["created_at", "2019-12-06 02:15:22.047351"], ["updated_at", "2019-12-06 02:15:22.047351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.049659"], ["updated_at", "2019-12-06 02:15:22.049659"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1246], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1457], ["LIMIT", 1]]
SQL (3.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1457], ["room_id", 1246], ["created_at", "2019-12-06 02:15:22.086123"], ["updated_at", "2019-12-06 02:15:22.086123"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1246"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1246], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1246')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MdLA.FvLahFdXHNxyQvGlO6w3cLEGaXMgJXkJWGEAgln6XUGjYXIK"], ["created_at", "2019-12-06 02:15:22.103426"], ["updated_at", "2019-12-06 02:15:22.103426"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.105805"], ["updated_at", "2019-12-06 02:15:22.105805"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1247], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1458], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1458], ["room_id", 1247], ["created_at", "2019-12-06 02:15:22.110067"], ["updated_at", "2019-12-06 02:15:22.110067"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1247"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1247], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1247')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qFPesWZbiWZ6TSJNTVAVL.oiP/CcR82jzfVtI37GoGmlG5Tq.pGQ."], ["created_at", "2019-12-06 02:15:22.122768"], ["updated_at", "2019-12-06 02:15:22.122768"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.125029"], ["updated_at", "2019-12-06 02:15:22.125029"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1248], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1459], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1459], ["room_id", 1248], ["created_at", "2019-12-06 02:15:22.129305"], ["updated_at", "2019-12-06 02:15:22.129305"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1248"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1248], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1248')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QJINDwGrX9D7wSs0/sPGouEdnMIpRW2azjk2Tl52ni02FAZHy7DHu"], ["created_at", "2019-12-06 02:15:22.139749"], ["updated_at", "2019-12-06 02:15:22.139749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.141899"], ["updated_at", "2019-12-06 02:15:22.141899"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1249], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1460], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1460], ["room_id", 1249], ["created_at", "2019-12-06 02:15:22.145758"], ["updated_at", "2019-12-06 02:15:22.145758"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1249"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1249], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1249')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 102ms (Views: 71.8ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BRb8rgETtls7jY1DHE8H1Os6P934gOf7rqMcxnpzZRlrzxFs5Gr4q"], ["created_at", "2019-12-06 02:15:22.703888"], ["updated_at", "2019-12-06 02:15:22.703888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.706163"], ["updated_at", "2019-12-06 02:15:22.706163"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:15:22 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:22.722272"], ["last_sign_in_at", "2019-12-06 02:15:22.722272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:22.722938"], ["id", 1461]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1250"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1250], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1461], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1461], ["room_id", 1250], ["created_at", "2019-12-06 02:15:22.739634"], ["updated_at", "2019-12-06 02:15:22.739634"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1250], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YgF3CLTuWVUO/Kj1zdzuUeaZl6PaF1dN9r.OcMqekHniei03dWsam"], ["created_at", "2019-12-06 02:15:22.749903"], ["updated_at", "2019-12-06 02:15:22.749903"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.752128"], ["updated_at", "2019-12-06 02:15:22.752128"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:15:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:22.754684"], ["last_sign_in_at", "2019-12-06 02:15:22.754684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:22.755153"], ["id", 1462]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1251"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1251], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1462], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1462], ["room_id", 1251], ["created_at", "2019-12-06 02:15:22.759938"], ["updated_at", "2019-12-06 02:15:22.759938"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4Oxlvyt/VOcTxY9rhsgeR.94UeFlFoRT8ll4Sm82X6FLzomdrZwSG"], ["created_at", "2019-12-06 02:15:22.769245"], ["updated_at", "2019-12-06 02:15:22.769245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.771489"], ["updated_at", "2019-12-06 02:15:22.771489"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:15:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:22.774489"], ["last_sign_in_at", "2019-12-06 02:15:22.774489"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:22.774993"], ["id", 1463]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1252"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1252], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7HC.UWuGljMUoKXnSQB72u1sHmRC0e8HFaRLXtmCWjUk1wuBXRdfK"], ["created_at", "2019-12-06 02:15:22.786302"], ["updated_at", "2019-12-06 02:15:22.786302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.788595"], ["updated_at", "2019-12-06 02:15:22.788595"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:15:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:22.791126"], ["last_sign_in_at", "2019-12-06 02:15:22.791126"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:22.791639"], ["id", 1464]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1253"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bL0.6PTmodgH2KMJerWCcODV1aneouoYY5sxImA5WpPg1LBDjASc."], ["created_at", "2019-12-06 02:15:22.802025"], ["updated_at", "2019-12-06 02:15:22.802025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:22.804465"], ["updated_at", "2019-12-06 02:15:22.804465"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1254], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1465], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1465], ["room_id", 1254], ["created_at", "2019-12-06 02:15:22.812353"], ["updated_at", "2019-12-06 02:15:22.812353"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1254” for 127.0.0.1 at 2019-12-05 23:15:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:22.814979"], ["last_sign_in_at", "2019-12-06 02:15:22.814979"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:22.815521"], ["id", 1465]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1254"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1254], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1254')
Rendered appointments/show.html.erb within layouts/application (21.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 345ms (Views: 328.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.DZOF0r3OOpSX/WBtUE06.dLhvlgDi8vaV1PLh07PnBD8/c.GKQ7q"], ["created_at", "2019-12-06 02:15:23.171642"], ["updated_at", "2019-12-06 02:15:23.171642"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.173936"], ["updated_at", "2019-12-06 02:15:23.173936"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1255], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1466], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1466], ["room_id", 1255], ["created_at", "2019-12-06 02:15:23.178166"], ["updated_at", "2019-12-06 02:15:23.178166"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1255], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1466], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1466], ["room_id", 1255], ["created_at", "2019-12-06 02:15:23.181904"], ["updated_at", "2019-12-06 02:15:23.181904"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.184334"], ["last_sign_in_at", "2019-12-06 02:15:23.184334"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.185109"], ["id", 1466]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1466]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 35ms (Views: 4.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OecE8JKnVYHHdubel5CLsOYSRHqAVemGWTfPMAdcxaNgRlZAeMlee"], ["created_at", "2019-12-06 02:15:23.228583"], ["updated_at", "2019-12-06 02:15:23.228583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.230573"], ["updated_at", "2019-12-06 02:15:23.230573"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (12.9ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1256], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1467], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1467], ["room_id", 1256], ["created_at", "2019-12-06 02:15:23.246932"], ["updated_at", "2019-12-06 02:15:23.246932"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1256], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1467], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1467], ["room_id", 1256], ["created_at", "2019-12-06 02:15:23.250653"], ["updated_at", "2019-12-06 02:15:23.250653"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.253272"], ["last_sign_in_at", "2019-12-06 02:15:23.253272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.253811"], ["id", 1467]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1467]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YCQ4J7QlHF7Y8HfKA0Pwq.gQ3SbD5DtuuWhJv6D3eCSFBcGg9EhVG"], ["created_at", "2019-12-06 02:15:23.267091"], ["updated_at", "2019-12-06 02:15:23.267091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.269579"], ["updated_at", "2019-12-06 02:15:23.269579"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1257], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1468], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1468], ["room_id", 1257], ["created_at", "2019-12-06 02:15:23.273453"], ["updated_at", "2019-12-06 02:15:23.273453"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/669” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.275623"], ["last_sign_in_at", "2019-12-06 02:15:23.275623"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.276092"], ["id", 1468]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"669"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 669], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 669]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/A7jAXFZlb5JDMlT9wFkwuw8YyzCpLcohuHDFRK2AixFW/Q8kURuG"], ["created_at", "2019-12-06 02:15:23.289661"], ["updated_at", "2019-12-06 02:15:23.289661"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.292128"], ["last_sign_in_at", "2019-12-06 02:15:23.292128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.292592"], ["id", 1469]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rd6SM6TPZyHaYiHmxAldJe00r3U3p1MhEL5PKoppZ6NDZ4UuB33ea"], ["created_at", "2019-12-06 02:15:23.337012"], ["updated_at", "2019-12-06 02:15:23.337012"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.339142"], ["updated_at", "2019-12-06 02:15:23.339142"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1258], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1470], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1470], ["room_id", 1258], ["created_at", "2019-12-06 02:15:23.342962"], ["updated_at", "2019-12-06 02:15:23.342962"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1258], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1470], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1470], ["room_id", 1258], ["created_at", "2019-12-06 02:15:23.346837"], ["updated_at", "2019-12-06 02:15:23.346837"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.349139"], ["last_sign_in_at", "2019-12-06 02:15:23.349139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.349665"], ["id", 1470]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1258], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1470], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1470], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f3u88WiLUJ2zW9hM8OdohebK8wcwiPDyNRKhSR4.4S1YwK0H9mUAW"], ["created_at", "2019-12-06 02:15:23.363877"], ["updated_at", "2019-12-06 02:15:23.363877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.366226"], ["updated_at", "2019-12-06 02:15:23.366226"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1259], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1471], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1471], ["room_id", 1259], ["created_at", "2019-12-06 02:15:23.370891"], ["updated_at", "2019-12-06 02:15:23.370891"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1259], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1471], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1471], ["room_id", 1259], ["created_at", "2019-12-06 02:15:23.374845"], ["updated_at", "2019-12-06 02:15:23.374845"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.377291"], ["last_sign_in_at", "2019-12-06 02:15:23.377291"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.377814"], ["id", 1471]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1259], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1471], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1471], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$igGVSKeQ..wvFxZB9SmJAuZDkgzq93od4C63Z9mI7bVAYrKsn/QQO"], ["created_at", "2019-12-06 02:15:23.393069"], ["updated_at", "2019-12-06 02:15:23.393069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.395295"], ["updated_at", "2019-12-06 02:15:23.395295"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1260], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1472], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1472], ["room_id", 1260], ["created_at", "2019-12-06 02:15:23.399207"], ["updated_at", "2019-12-06 02:15:23.399207"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1260], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1472], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1472], ["room_id", 1260], ["created_at", "2019-12-06 02:15:23.403725"], ["updated_at", "2019-12-06 02:15:23.403725"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.406159"], ["last_sign_in_at", "2019-12-06 02:15:23.406159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.406698"], ["id", 1472]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YmsivXXfXERKiYJVWzEJ7u1R/Z4YoXzdbVLNtSxU1Imptp8kMke.m"], ["created_at", "2019-12-06 02:15:23.418670"], ["updated_at", "2019-12-06 02:15:23.418670"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.421097"], ["updated_at", "2019-12-06 02:15:23.421097"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1261], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1473], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1473], ["room_id", 1261], ["created_at", "2019-12-06 02:15:23.425257"], ["updated_at", "2019-12-06 02:15:23.425257"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1261], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1473], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1473], ["room_id", 1261], ["created_at", "2019-12-06 02:15:23.429254"], ["updated_at", "2019-12-06 02:15:23.429254"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.431760"], ["last_sign_in_at", "2019-12-06 02:15:23.431760"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.432277"], ["id", 1473]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yiCSPlW/1DctmrXugEGsJOS4S8n/B66xxtSFZiUhXdaMAscf5rZau"], ["created_at", "2019-12-06 02:15:23.447598"], ["updated_at", "2019-12-06 02:15:23.447598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.450652"], ["last_sign_in_at", "2019-12-06 02:15:23.450652"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.451355"], ["id", 1474]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (11.6ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 66ms (Views: 49.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y04TlPaBzmK/IxYzpSmMbub3M919l3MdPmsjKH9DFkk/nkXDU1iSu"], ["created_at", "2019-12-06 02:15:23.529871"], ["updated_at", "2019-12-06 02:15:23.529871"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.532338"], ["last_sign_in_at", "2019-12-06 02:15:23.532338"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.532962"], ["id", 1475]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/bVhV63oHS3okdpBMs9KHeyUncRHOA0WumIVpjfVK9jfcHQ0lfNKi"], ["created_at", "2019-12-06 02:15:23.544432"], ["updated_at", "2019-12-06 02:15:23.544432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.546927"], ["last_sign_in_at", "2019-12-06 02:15:23.546927"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.547390"], ["id", 1476]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 21ms (Views: 5.0ms | ActiveRecord: 0.3ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W5AMywwWDZHccA8bTw2ET.4PQFfsh/4toNtuqndT0O386uhRgKk5a"], ["created_at", "2019-12-06 02:15:23.577767"], ["updated_at", "2019-12-06 02:15:23.577767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.580000"], ["last_sign_in_at", "2019-12-06 02:15:23.580000"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.580660"], ["id", 1477]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W81BxN4PnNxHltA/qooQhuihrWTDKbE2uj0OzKiDAhYltjPNLS/8i"], ["created_at", "2019-12-06 02:15:23.604295"], ["updated_at", "2019-12-06 02:15:23.604295"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.606670"], ["updated_at", "2019-12-06 02:15:23.606670"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1262” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.609011"], ["last_sign_in_at", "2019-12-06 02:15:23.609011"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.609505"], ["id", 1478]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1262"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1262], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7I21BK2XQng7vchEwzoefuo6Drtr.3B4z0GBfGV/vWFpGnYTeOy56"], ["created_at", "2019-12-06 02:15:23.638492"], ["updated_at", "2019-12-06 02:15:23.638492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.641089"], ["updated_at", "2019-12-06 02:15:23.641089"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1263” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.643381"], ["last_sign_in_at", "2019-12-06 02:15:23.643381"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.644194"], ["id", 1479]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1263"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1263], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.655434"], ["updated_at", "2019-12-06 02:15:23.655434"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1264” for 127.0.0.1 at 2019-12-05 23:15:23 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1264"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.5ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lr0YBNdg3HIUGgtedVP3zuftln3.Wdn1NZOf8Pzr9/FwFNuWR4qOu"], ["created_at", "2019-12-06 02:15:23.667128"], ["updated_at", "2019-12-06 02:15:23.667128"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.669911"], ["updated_at", "2019-12-06 02:15:23.669911"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1265/edit” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.672435"], ["last_sign_in_at", "2019-12-06 02:15:23.672435"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.672956"], ["id", 1480]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1265"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1265], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 20ms (Views: 4.3ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$glV13DyYBPXyXeiT8Zf31.rZChpNMK4whazHHDKl4bHvZ5uQH3TmW"], ["created_at", "2019-12-06 02:15:23.702758"], ["updated_at", "2019-12-06 02:15:23.702758"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.705278"], ["updated_at", "2019-12-06 02:15:23.705278"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1266/edit” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.707826"], ["last_sign_in_at", "2019-12-06 02:15:23.707826"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.708360"], ["id", 1481]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1266"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1266], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.721218"], ["updated_at", "2019-12-06 02:15:23.721218"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1267” for 127.0.0.1 at 2019-12-05 23:15:23 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1267"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iWXDjsSU7n9uRM90F18uqeNv40.07l7hghivysI1i5kbGw4XVvnZC"], ["created_at", "2019-12-06 02:15:23.734152"], ["updated_at", "2019-12-06 02:15:23.734152"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.737896"], ["last_sign_in_at", "2019-12-06 02:15:23.737896"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.738422"], ["id", 1482]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.742195"], ["updated_at", "2019-12-06 02:15:23.742195"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p4jILZEqbFuKH7UZR0pp6.MvP6diFvACOkWrFBlkGKzTDoqgMp8li"], ["created_at", "2019-12-06 02:15:23.759605"], ["updated_at", "2019-12-06 02:15:23.759605"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.762102"], ["last_sign_in_at", "2019-12-06 02:15:23.762102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.762610"], ["id", 1483]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.765991"], ["updated_at", "2019-12-06 02:15:23.765991"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q.4AAPp4aefSHpTa8jGaOORT129LdIiJoL84xGLfNL/D1NPUatXJ2"], ["created_at", "2019-12-06 02:15:23.775308"], ["updated_at", "2019-12-06 02:15:23.775308"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.778736"], ["last_sign_in_at", "2019-12-06 02:15:23.778736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.779528"], ["id", 1484]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uRUZk6entyZu.vG3SlGPcuu5oDBeTcfgvn5tOkVlANywUivp6liMC"], ["created_at", "2019-12-06 02:15:23.791502"], ["updated_at", "2019-12-06 02:15:23.791502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.794056"], ["last_sign_in_at", "2019-12-06 02:15:23.794056"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.794595"], ["id", 1485]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bqzDWu/Lr3pqxQ7lPfKrj.d/TPEDQNyINrTXIAibVLxXcVx1QmwaW"], ["created_at", "2019-12-06 02:15:23.806407"], ["updated_at", "2019-12-06 02:15:23.806407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.809011"], ["last_sign_in_at", "2019-12-06 02:15:23.809011"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.809508"], ["id", 1486]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f5bl1ZeINJdSzAkfkQDb/.2jCvolcWZhTLxbqP8zy6cUxeZ/iXGJu"], ["created_at", "2019-12-06 02:15:23.821279"], ["updated_at", "2019-12-06 02:15:23.821279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.823661"], ["updated_at", "2019-12-06 02:15:23.823661"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1270” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.826182"], ["last_sign_in_at", "2019-12-06 02:15:23.826182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.826688"], ["id", 1487]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1270"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1270], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:15:23.830496"], ["id", 1270]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1270 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MFvlgzDphogVfS0ItmQOB.ak.Wge4MJP.6xe7VbCBXSR3zV.tiO/6"], ["created_at", "2019-12-06 02:15:23.839353"], ["updated_at", "2019-12-06 02:15:23.839353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.841598"], ["updated_at", "2019-12-06 02:15:23.841598"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1271” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.844062"], ["last_sign_in_at", "2019-12-06 02:15:23.844062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.844628"], ["id", 1488]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1271"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1271], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:15:23.848362"], ["id", 1271]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1271 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3BQNoRPZ91S2KCp4IgiYJ.MMO6iIUJb8bWk2jYIra3MoIcsDiXBpO"], ["created_at", "2019-12-06 02:15:23.857605"], ["updated_at", "2019-12-06 02:15:23.857605"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.859864"], ["updated_at", "2019-12-06 02:15:23.859864"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1272” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.862294"], ["last_sign_in_at", "2019-12-06 02:15:23.862294"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.862785"], ["id", 1489]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1272"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1272], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bUFkK3Z9EC7LcB8s0...ke0fagQT/U6owJDLyyC5IQ/TATMg3XYKu"], ["created_at", "2019-12-06 02:15:23.877057"], ["updated_at", "2019-12-06 02:15:23.877057"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.879309"], ["updated_at", "2019-12-06 02:15:23.879309"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1273” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.881708"], ["last_sign_in_at", "2019-12-06 02:15:23.881708"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.882248"], ["id", 1490]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1273"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1273], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jZX9L.NNtZHd0W68GKED.uqOZJL/Y6nsQDKYNNhb9M7drEhO/7pCO"], ["created_at", "2019-12-06 02:15:23.896839"], ["updated_at", "2019-12-06 02:15:23.896839"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.899407"], ["last_sign_in_at", "2019-12-06 02:15:23.899407"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.899901"], ["id", 1491]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qyCv0CdurUyYitRP.PoyBO7qL8fBsMGBiQwRT793yRy93vziFHMVe"], ["created_at", "2019-12-06 02:15:23.910715"], ["updated_at", "2019-12-06 02:15:23.910715"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.912989"], ["updated_at", "2019-12-06 02:15:23.912989"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1274” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.914847"], ["last_sign_in_at", "2019-12-06 02:15:23.914847"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.915325"], ["id", 1492]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1274"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1274], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1274]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a6268LFkJR2vcoupWLVvleak/0ApK0tzrqYqcQX2paZcjiwKk.KAm"], ["created_at", "2019-12-06 02:15:23.927177"], ["updated_at", "2019-12-06 02:15:23.927177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.929670"], ["updated_at", "2019-12-06 02:15:23.929670"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1275” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.931802"], ["last_sign_in_at", "2019-12-06 02:15:23.931802"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.932563"], ["id", 1493]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1275"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1275], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1275]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hO0vFOOaaNcwpcPN4ufaDOCozbhRvBpwodC12ScCdPQdsfuXdLxVO"], ["created_at", "2019-12-06 02:15:23.945874"], ["updated_at", "2019-12-06 02:15:23.945874"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.948236"], ["updated_at", "2019-12-06 02:15:23.948236"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1276” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.950430"], ["last_sign_in_at", "2019-12-06 02:15:23.950430"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.951396"], ["id", 1494]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1276"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3kS0N4f4zcHQYyIw/WE5suKpot2/pVawHXoxn9d/OP8NfdXWJN3tG"], ["created_at", "2019-12-06 02:15:23.961938"], ["updated_at", "2019-12-06 02:15:23.961938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:15:23.964464"], ["updated_at", "2019-12-06 02:15:23.964464"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1277” for 127.0.0.1 at 2019-12-05 23:15:23 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:15:23.966522"], ["last_sign_in_at", "2019-12-06 02:15:23.966522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:15:23.967069"], ["id", 1495]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1277"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mT9AeJMW9L3oVGmjmDrkv.mTh2zxat5hUiHuRfGJ7FCeL1p3uY2TW"], ["created_at", "2019-12-06 02:16:09.285968"], ["updated_at", "2019-12-06 02:16:09.285968"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:09.294651"], ["updated_at", "2019-12-06 02:16:09.294651"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1278"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1278], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1278')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 151ms (Views: 107.9ms | ActiveRecord: 2.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZRjgnB8yZbMCiDP6t15PTOCw932o5ILD1fNeEFzAOXmISav6s5N/O"], ["created_at", "2019-12-06 02:16:09.455983"], ["updated_at", "2019-12-06 02:16:09.455983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:09.458298"], ["updated_at", "2019-12-06 02:16:09.458298"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1279], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1497], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1497], ["room_id", 1279], ["created_at", "2019-12-06 02:16:09.495320"], ["updated_at", "2019-12-06 02:16:09.495320"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1279"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1279], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1279')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Df7IBVxjrjXhylrMX9TAxuy6Kzlvbj2M1nWS4gebYO4NvMFykJQt2"], ["created_at", "2019-12-06 02:16:09.509283"], ["updated_at", "2019-12-06 02:16:09.509283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:09.511524"], ["updated_at", "2019-12-06 02:16:09.511524"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1280], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1498], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1498], ["room_id", 1280], ["created_at", "2019-12-06 02:16:09.515802"], ["updated_at", "2019-12-06 02:16:09.515802"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1280"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1280], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1280')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hYtS.7z6gVIlqJwZwJYNDefRigIIMFj1Q8J4v6uVgBGcsuMlk2FZu"], ["created_at", "2019-12-06 02:16:09.528954"], ["updated_at", "2019-12-06 02:16:09.528954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:09.531208"], ["updated_at", "2019-12-06 02:16:09.531208"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1281], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1499], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1499], ["room_id", 1281], ["created_at", "2019-12-06 02:16:09.535277"], ["updated_at", "2019-12-06 02:16:09.535277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1281"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1281], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1281')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cCRB2JrCOVlijv7u06c.o.AdHgun0Xuy1u2bX7u/k2/gU14BAYOIS"], ["created_at", "2019-12-06 02:16:09.546330"], ["updated_at", "2019-12-06 02:16:09.546330"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:09.548312"], ["updated_at", "2019-12-06 02:16:09.548312"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1282], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1500], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-05 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1500], ["room_id", 1282], ["created_at", "2019-12-06 02:16:09.551699"], ["updated_at", "2019-12-06 02:16:09.551699"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1282"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1282], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-05' AND room_id = '1282')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 104ms (Views: 73.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UD754/0/OdembIo9LPbNMukX.al2/mSbbX7SzrE7eMYk8GagthTpa"], ["created_at", "2019-12-06 02:16:10.114610"], ["updated_at", "2019-12-06 02:16:10.114610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.116636"], ["updated_at", "2019-12-06 02:16:10.116636"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.132248"], ["last_sign_in_at", "2019-12-06 02:16:10.132248"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.132842"], ["id", 1501]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1283"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1283], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1501], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1501], ["room_id", 1283], ["created_at", "2019-12-06 02:16:10.149657"], ["updated_at", "2019-12-06 02:16:10.149657"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1283], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$niYNdzqfnXmMoVwBdUb4AuRDKj77llNYXG7W8ym2E2fFbkj8T3dEC"], ["created_at", "2019-12-06 02:16:10.158372"], ["updated_at", "2019-12-06 02:16:10.158372"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.160317"], ["updated_at", "2019-12-06 02:16:10.160317"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.162565"], ["last_sign_in_at", "2019-12-06 02:16:10.162565"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.163055"], ["id", 1502]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1284"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1284], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1502], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1502], ["room_id", 1284], ["created_at", "2019-12-06 02:16:10.168402"], ["updated_at", "2019-12-06 02:16:10.168402"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qWHrse.d4BzrRVWfgOfDGOxthhdjNeUyjRD7ywN85K83Ww4XDgiwy"], ["created_at", "2019-12-06 02:16:10.176840"], ["updated_at", "2019-12-06 02:16:10.176840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.178803"], ["updated_at", "2019-12-06 02:16:10.178803"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.181146"], ["last_sign_in_at", "2019-12-06 02:16:10.181146"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.181884"], ["id", 1503]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1285"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1285], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$N86IfeEpxY6cypzxXAGPxujeTQyjyDKimYzGZYX0QXAIx74UvbM6a"], ["created_at", "2019-12-06 02:16:10.190565"], ["updated_at", "2019-12-06 02:16:10.190565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.193516"], ["updated_at", "2019-12-06 02:16:10.193516"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.195684"], ["last_sign_in_at", "2019-12-06 02:16:10.195684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.196166"], ["id", 1504]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1286"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$n48UPJie5BeGGlE2BaWo.uLQxwxE.yPS5cgiIMgYGCCntYKrX/d9a"], ["created_at", "2019-12-06 02:16:10.206062"], ["updated_at", "2019-12-06 02:16:10.206062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.208177"], ["updated_at", "2019-12-06 02:16:10.208177"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1287], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1505], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1505], ["room_id", 1287], ["created_at", "2019-12-06 02:16:10.212115"], ["updated_at", "2019-12-06 02:16:10.212115"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1287” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.214519"], ["last_sign_in_at", "2019-12-06 02:16:10.214519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.215038"], ["id", 1505]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1287"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1287], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-02' AND room_id = '1287')
Rendered appointments/show.html.erb within layouts/application (20.8ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 346ms (Views: 328.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$s8hKFiBCcz59IfFJf.H12eh9fR1Kv6ioeOlgkF1Iz6iLQ2zayPs8m"], ["created_at", "2019-12-06 02:16:10.575137"], ["updated_at", "2019-12-06 02:16:10.575137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.577359"], ["updated_at", "2019-12-06 02:16:10.577359"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1288], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1506], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1506], ["room_id", 1288], ["created_at", "2019-12-06 02:16:10.582107"], ["updated_at", "2019-12-06 02:16:10.582107"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1288], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1506], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1506], ["room_id", 1288], ["created_at", "2019-12-06 02:16:10.586036"], ["updated_at", "2019-12-06 02:16:10.586036"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.588755"], ["last_sign_in_at", "2019-12-06 02:16:10.588755"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.589288"], ["id", 1506]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1506]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 36ms (Views: 4.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rSoO9uMHS6.IyCdN7nqqAubSNsQHUOHVvDSbHFb0lqtOVSbqe/2hu"], ["created_at", "2019-12-06 02:16:10.633691"], ["updated_at", "2019-12-06 02:16:10.633691"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.636054"], ["updated_at", "2019-12-06 02:16:10.636054"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1289], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1507], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1507], ["room_id", 1289], ["created_at", "2019-12-06 02:16:10.640589"], ["updated_at", "2019-12-06 02:16:10.640589"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1289], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1507], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1507], ["room_id", 1289], ["created_at", "2019-12-06 02:16:10.656545"], ["updated_at", "2019-12-06 02:16:10.656545"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.659098"], ["last_sign_in_at", "2019-12-06 02:16:10.659098"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.659603"], ["id", 1507]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1507]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KpBM.gJ8cZMJe1Xmlwnzbeehe6TyLIDRmDyHWvdxoMLSt159Rj8ka"], ["created_at", "2019-12-06 02:16:10.673220"], ["updated_at", "2019-12-06 02:16:10.673220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.675336"], ["updated_at", "2019-12-06 02:16:10.675336"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1290], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1508], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1508], ["room_id", 1290], ["created_at", "2019-12-06 02:16:10.679377"], ["updated_at", "2019-12-06 02:16:10.679377"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/689” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.681652"], ["last_sign_in_at", "2019-12-06 02:16:10.681652"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.682206"], ["id", 1508]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"689"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 689], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 689]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SVneB0TW84ZQ.Fj3V4CsN.O5I07F7BU27qWA3oKKDpUXb3oHQU2BW"], ["created_at", "2019-12-06 02:16:10.696979"], ["updated_at", "2019-12-06 02:16:10.696979"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.699293"], ["last_sign_in_at", "2019-12-06 02:16:10.699293"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.699774"], ["id", 1509]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 34ms (Views: 18.2ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sj4I4JsjXk6YuT6frLZTpOmnpglDbNHdSrpQWByDGAU0AamuHIMiK"], ["created_at", "2019-12-06 02:16:10.744399"], ["updated_at", "2019-12-06 02:16:10.744399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.746711"], ["updated_at", "2019-12-06 02:16:10.746711"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1291], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1510], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1510], ["room_id", 1291], ["created_at", "2019-12-06 02:16:10.750981"], ["updated_at", "2019-12-06 02:16:10.750981"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1291], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1510], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1510], ["room_id", 1291], ["created_at", "2019-12-06 02:16:10.755411"], ["updated_at", "2019-12-06 02:16:10.755411"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.757743"], ["last_sign_in_at", "2019-12-06 02:16:10.757743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.758268"], ["id", 1510]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1291], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1510], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1510], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PHRLRs0HHWtoipflgp5yTO8QXIOipdEtRKcZZm2I3Txy0xfsEgiRi"], ["created_at", "2019-12-06 02:16:10.772354"], ["updated_at", "2019-12-06 02:16:10.772354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.774604"], ["updated_at", "2019-12-06 02:16:10.774604"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1292], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1511], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1511], ["room_id", 1292], ["created_at", "2019-12-06 02:16:10.778648"], ["updated_at", "2019-12-06 02:16:10.778648"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1292], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1511], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1511], ["room_id", 1292], ["created_at", "2019-12-06 02:16:10.782675"], ["updated_at", "2019-12-06 02:16:10.782675"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.784957"], ["last_sign_in_at", "2019-12-06 02:16:10.784957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.785507"], ["id", 1511]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1292], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1511], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1511], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P1geQJZbN488jYKOt36HV.Ws58HXNlFeXi5sFmSprybnXAjxUWmmK"], ["created_at", "2019-12-06 02:16:10.800944"], ["updated_at", "2019-12-06 02:16:10.800944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.803858"], ["updated_at", "2019-12-06 02:16:10.803858"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1293], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1512], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1512], ["room_id", 1293], ["created_at", "2019-12-06 02:16:10.808738"], ["updated_at", "2019-12-06 02:16:10.808738"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1293], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1512], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1512], ["room_id", 1293], ["created_at", "2019-12-06 02:16:10.812756"], ["updated_at", "2019-12-06 02:16:10.812756"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.815175"], ["last_sign_in_at", "2019-12-06 02:16:10.815175"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.815653"], ["id", 1512]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2jz5orZcjd/MctzOoz/o7eGvn9qyeLVRkKKUaoQh0SCenvsn9iyea"], ["created_at", "2019-12-06 02:16:10.827702"], ["updated_at", "2019-12-06 02:16:10.827702"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:10.830022"], ["updated_at", "2019-12-06 02:16:10.830022"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1294], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1513], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1513], ["room_id", 1294], ["created_at", "2019-12-06 02:16:10.834525"], ["updated_at", "2019-12-06 02:16:10.834525"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1294], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1513], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1513], ["room_id", 1294], ["created_at", "2019-12-06 02:16:10.839181"], ["updated_at", "2019-12-06 02:16:10.839181"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.842139"], ["last_sign_in_at", "2019-12-06 02:16:10.842139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.843095"], ["id", 1513]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rCpW8V8y6rLpA/QBkhTCDOSu./0s.L0sfNmIKIUTgnbBpzG8zEi/2"], ["created_at", "2019-12-06 02:16:10.857971"], ["updated_at", "2019-12-06 02:16:10.857971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.860714"], ["last_sign_in_at", "2019-12-06 02:16:10.860714"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.861372"], ["id", 1514]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.5ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 67ms (Views: 50.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DhzK.eYcBBiwcgEemjesjefjcW7.46YkpmOxGfzNwr77.f1IDt4bi"], ["created_at", "2019-12-06 02:16:10.942275"], ["updated_at", "2019-12-06 02:16:10.942275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.945051"], ["last_sign_in_at", "2019-12-06 02:16:10.945051"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.945517"], ["id", 1515]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KB.WaJMCtlycyk3EXPVMqe85Yrw3bvu9mkJdiIsuGxj5wZRySY1si"], ["created_at", "2019-12-06 02:16:10.957741"], ["updated_at", "2019-12-06 02:16:10.957741"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.962706"], ["last_sign_in_at", "2019-12-06 02:16:10.962706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.963416"], ["id", 1516]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 21ms (Views: 4.7ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nzsfX5HBlxeU.BxqCsgQPuBqWCTCwxgquO5YBld0dKfeBkCa924ZC"], ["created_at", "2019-12-06 02:16:10.993526"], ["updated_at", "2019-12-06 02:16:10.993526"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:16:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:10.996166"], ["last_sign_in_at", "2019-12-06 02:16:10.996166"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:10.996664"], ["id", 1517]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MLOKmiU3SDFPF94qr2ZfXe.FGgEPxY6iAlsV.epB7u.qUTjOpcVhm"], ["created_at", "2019-12-06 02:16:11.022148"], ["updated_at", "2019-12-06 02:16:11.022148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.024636"], ["updated_at", "2019-12-06 02:16:11.024636"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1295” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.027314"], ["last_sign_in_at", "2019-12-06 02:16:11.027314"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.027876"], ["id", 1518]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1295"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1295], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 19ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pxWI5OYL/8tr5WST1zyoXuFcEJp/a9seTD3XI8ihroyrEyU6ddYau"], ["created_at", "2019-12-06 02:16:11.056170"], ["updated_at", "2019-12-06 02:16:11.056170"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.059010"], ["updated_at", "2019-12-06 02:16:11.059010"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1296” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.061706"], ["last_sign_in_at", "2019-12-06 02:16:11.061706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.062594"], ["id", 1519]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1296"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1296], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.074639"], ["updated_at", "2019-12-06 02:16:11.074639"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1297” for 127.0.0.1 at 2019-12-05 23:16:11 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1297"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i5l55IEZXXKe/jlCqxVQROVa.FPlsLJFkEqOQd8lkW1zf40NHJq7O"], ["created_at", "2019-12-06 02:16:11.087493"], ["updated_at", "2019-12-06 02:16:11.087493"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.090176"], ["updated_at", "2019-12-06 02:16:11.090176"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1298/edit” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.092688"], ["last_sign_in_at", "2019-12-06 02:16:11.092688"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.093188"], ["id", 1520]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1298"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1298], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 20ms (Views: 4.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yPGimRIj.K8KAGbHYtpKneX2yIV.VagsYjLHVs.b5Q.mBsRJ4OaIK"], ["created_at", "2019-12-06 02:16:11.123472"], ["updated_at", "2019-12-06 02:16:11.123472"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.125867"], ["updated_at", "2019-12-06 02:16:11.125867"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1299/edit” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.128485"], ["last_sign_in_at", "2019-12-06 02:16:11.128485"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.129059"], ["id", 1521]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1299"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1299], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.141984"], ["updated_at", "2019-12-06 02:16:11.141984"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1300” for 127.0.0.1 at 2019-12-05 23:16:11 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1300"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1DaQjF0/83jia.UAYuQyjeeppLG.DccJz4AzAf/YT0tfY4JHMO.Jm"], ["created_at", "2019-12-06 02:16:11.156201"], ["updated_at", "2019-12-06 02:16:11.156201"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.159856"], ["last_sign_in_at", "2019-12-06 02:16:11.159856"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.160403"], ["id", 1522]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.164216"], ["updated_at", "2019-12-06 02:16:11.164216"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VlKhfkbKx8cK1akN1Yz0.eE9plHDAKR9IwRbcKKr6YCIJKFw0clUG"], ["created_at", "2019-12-06 02:16:11.174638"], ["updated_at", "2019-12-06 02:16:11.174638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.177820"], ["last_sign_in_at", "2019-12-06 02:16:11.177820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.178474"], ["id", 1523]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.189811"], ["updated_at", "2019-12-06 02:16:11.189811"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B.9mVWuW90Bh4NQyCU8GM.PIxEnpeoBcVv0qkjtK3p/yexn2UYH0u"], ["created_at", "2019-12-06 02:16:11.198266"], ["updated_at", "2019-12-06 02:16:11.198266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.200818"], ["last_sign_in_at", "2019-12-06 02:16:11.200818"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.201323"], ["id", 1524]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8OUmWeJKWZgw1xvN7Cscz.jamaN746FrUXjY4.S5vFKVGNF1vJfpW"], ["created_at", "2019-12-06 02:16:11.213780"], ["updated_at", "2019-12-06 02:16:11.213780"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.216353"], ["last_sign_in_at", "2019-12-06 02:16:11.216353"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.216829"], ["id", 1525]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UedUtCs..2/AtS39aVgfMuzUZiF4Uew3/xa5E/Ga5DSog5NTvBrd2"], ["created_at", "2019-12-06 02:16:11.228187"], ["updated_at", "2019-12-06 02:16:11.228187"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.230685"], ["last_sign_in_at", "2019-12-06 02:16:11.230685"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.231190"], ["id", 1526]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vsFs.BaqlR0ruuKxzWW4veJcqf25546DKdAkAhJRwzPTTB3qpECnS"], ["created_at", "2019-12-06 02:16:11.243462"], ["updated_at", "2019-12-06 02:16:11.243462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.245666"], ["updated_at", "2019-12-06 02:16:11.245666"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1303” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.247990"], ["last_sign_in_at", "2019-12-06 02:16:11.247990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.248483"], ["id", 1527]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1303"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1303], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:16:11.252502"], ["id", 1303]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1303 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NgTPQKz.zosQqezrAkH.mexbBcpSQmYZoDX75rMZqD.z4Tq5GTkDe"], ["created_at", "2019-12-06 02:16:11.261237"], ["updated_at", "2019-12-06 02:16:11.261237"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.263484"], ["updated_at", "2019-12-06 02:16:11.263484"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1304” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.265821"], ["last_sign_in_at", "2019-12-06 02:16:11.265821"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.266468"], ["id", 1528]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1304"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1304], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-06 02:16:11.270854"], ["id", 1304]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1304 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$53Jd0MwGJs6WG/.C9oQH.OeZatNTFJpqQHrUW.1vR0zpu2IvNYtTG"], ["created_at", "2019-12-06 02:16:11.279884"], ["updated_at", "2019-12-06 02:16:11.279884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.282130"], ["updated_at", "2019-12-06 02:16:11.282130"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1305” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.284276"], ["last_sign_in_at", "2019-12-06 02:16:11.284276"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.284771"], ["id", 1529]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1305"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1305], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FdkvnseQpwS1Q8b8XTspC.pThfaQFDSmGr3Erv2H9mn0Yr9y4.kEm"], ["created_at", "2019-12-06 02:16:11.299495"], ["updated_at", "2019-12-06 02:16:11.299495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.301776"], ["updated_at", "2019-12-06 02:16:11.301776"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1306” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.304753"], ["last_sign_in_at", "2019-12-06 02:16:11.304753"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.305452"], ["id", 1530]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1306"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1306], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zDmWK6thR5sEjHGWScE4ruTZwp2dCoLd.WsUpj3N5sIEaeNxAOZtq"], ["created_at", "2019-12-06 02:16:11.320138"], ["updated_at", "2019-12-06 02:16:11.320138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.322809"], ["last_sign_in_at", "2019-12-06 02:16:11.322809"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.323491"], ["id", 1531]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cbKXPQhcYx.hHyvp6icFGeqUWILGEmyNEyhDSo9FFSNfciTJn9dAy"], ["created_at", "2019-12-06 02:16:11.334217"], ["updated_at", "2019-12-06 02:16:11.334217"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.336958"], ["updated_at", "2019-12-06 02:16:11.336958"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1307” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.339123"], ["last_sign_in_at", "2019-12-06 02:16:11.339123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.339681"], ["id", 1532]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1307"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1307], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1307]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sVjAz6rVxRsTrL89MLORv.x0frdYn9Uxf4qNgok.PUvf8xI/u4yx."], ["created_at", "2019-12-06 02:16:11.350824"], ["updated_at", "2019-12-06 02:16:11.350824"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.353318"], ["updated_at", "2019-12-06 02:16:11.353318"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1308” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.355512"], ["last_sign_in_at", "2019-12-06 02:16:11.355512"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.356217"], ["id", 1533]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1308"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1308], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1308]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$28G4guIWvWDfLR.ZsPkLn.bB39Xv0Zgn06u0JXDvhxFgh3n0fOd76"], ["created_at", "2019-12-06 02:16:11.367731"], ["updated_at", "2019-12-06 02:16:11.367731"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.370231"], ["updated_at", "2019-12-06 02:16:11.370231"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1309” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.372310"], ["last_sign_in_at", "2019-12-06 02:16:11.372310"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.372808"], ["id", 1534]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1309"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3xEcAOyJRTZvXm2QRRVr0.W4YGjCVAM2n5C6gliH6pmOXIIvyJRHS"], ["created_at", "2019-12-06 02:16:11.381884"], ["updated_at", "2019-12-06 02:16:11.381884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-06 02:16:11.384298"], ["updated_at", "2019-12-06 02:16:11.384298"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1310” for 127.0.0.1 at 2019-12-05 23:16:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-06 02:16:11.386644"], ["last_sign_in_at", "2019-12-06 02:16:11.386644"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-06 02:16:11.387558"], ["id", 1535]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1310"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (40.2ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (21.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (46.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (116.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$A/dLHlDixYBYo7eKS5AcB.k94vhLvoSV4T1d0GNrMgzTdsZ.zh9hS"], ["created_at", "2019-12-11 22:53:32.779629"], ["updated_at", "2019-12-11 22:53:32.779629"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (69.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:32.904937"], ["updated_at", "2019-12-11 22:53:32.904937"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1311"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1311], ["LIMIT", 1]]
Appointment Load (35.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1311')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 277ms (Views: 154.0ms | ActiveRecord: 37.1ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (53.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aIx1aaABaJAvySu0r4.EXejddPnpYDSkJPnA.D/K44BnOym51/yjK"], ["created_at", "2019-12-11 22:53:33.348683"], ["updated_at", "2019-12-11 22:53:33.348683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:33.351419"], ["updated_at", "2019-12-11 22:53:33.351419"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1312], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1537], ["LIMIT", 1]]
SQL (31.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1537], ["room_id", 1312], ["created_at", "2019-12-11 22:53:33.505025"], ["updated_at", "2019-12-11 22:53:33.505025"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1312"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1312], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1312')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kJo5xenq/j14PwR2bU6rretxHSM7wN6F2MY9uNiNwAhMO5mTcmP4."], ["created_at", "2019-12-11 22:53:33.608793"], ["updated_at", "2019-12-11 22:53:33.608793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:33.611286"], ["updated_at", "2019-12-11 22:53:33.611286"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1313], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1538], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1538], ["room_id", 1313], ["created_at", "2019-12-11 22:53:33.616425"], ["updated_at", "2019-12-11 22:53:33.616425"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1313"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1313], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1313')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kz8ef1wgpqRSJmtsNru2DOJM8TUgJIKWJ5XZtVu5LqNps8o9WRFHK"], ["created_at", "2019-12-11 22:53:33.628310"], ["updated_at", "2019-12-11 22:53:33.628310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:33.631485"], ["updated_at", "2019-12-11 22:53:33.631485"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1314], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1539], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1539], ["room_id", 1314], ["created_at", "2019-12-11 22:53:33.635792"], ["updated_at", "2019-12-11 22:53:33.635792"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1314"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1314], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1314')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7Fyl6TZn/m9qfZ8monTLVeOrTeFzzEfg1o57K3VTWtZpjLGmPZILa"], ["created_at", "2019-12-11 22:53:33.646525"], ["updated_at", "2019-12-11 22:53:33.646525"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:33.649635"], ["updated_at", "2019-12-11 22:53:33.649635"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1315], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1540], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1540], ["room_id", 1315], ["created_at", "2019-12-11 22:53:33.654077"], ["updated_at", "2019-12-11 22:53:33.654077"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1315"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1315], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1315')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 114ms (Views: 81.6ms | ActiveRecord: 0.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uHuF1etSdkQ6j3gIwT1wdeWrUbAQxhwsoh5vpGgX3qbxykTK1uNGW"], ["created_at", "2019-12-11 22:53:35.111068"], ["updated_at", "2019-12-11 22:53:35.111068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:35.113938"], ["updated_at", "2019-12-11 22:53:35.113938"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 19:53:35 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (72.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:35.203606"], ["last_sign_in_at", "2019-12-11 22:53:35.203606"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:35.204405"], ["id", 1541]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1316"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1316], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1541], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1541], ["room_id", 1316], ["created_at", "2019-12-11 22:53:35.295458"], ["updated_at", "2019-12-11 22:53:35.295458"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1316], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LtmbRvCmVIuQJDRuL/VFEerm9AACtGzxRGBw87tf.evPZUA4thQfC"], ["created_at", "2019-12-11 22:53:35.306062"], ["updated_at", "2019-12-11 22:53:35.306062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:35.308241"], ["updated_at", "2019-12-11 22:53:35.308241"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 19:53:35 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:35.310683"], ["last_sign_in_at", "2019-12-11 22:53:35.310683"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:35.311350"], ["id", 1542]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1317"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1317], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1542], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1542], ["room_id", 1317], ["created_at", "2019-12-11 22:53:35.317324"], ["updated_at", "2019-12-11 22:53:35.317324"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DmIxzRag6yxC3wf7aPtKG.rhGWBPgAilzxn5d7BdsXcWTTWYJsJ86"], ["created_at", "2019-12-11 22:53:35.326286"], ["updated_at", "2019-12-11 22:53:35.326286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:35.328430"], ["updated_at", "2019-12-11 22:53:35.328430"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 19:53:35 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:35.331445"], ["last_sign_in_at", "2019-12-11 22:53:35.331445"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:35.332034"], ["id", 1543]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1318"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1318], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cC5uZTB4jkHtuMhCz/xepO0C7R95blkYqeaScmqTGSSkuyVhCvXZO"], ["created_at", "2019-12-11 22:53:35.341530"], ["updated_at", "2019-12-11 22:53:35.341530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:35.343847"], ["updated_at", "2019-12-11 22:53:35.343847"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 19:53:35 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:35.346579"], ["last_sign_in_at", "2019-12-11 22:53:35.346579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:35.347546"], ["id", 1544]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1319"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RCRvJyX5MioxxczAt46ivOP7k8C0q9yD3DWeT4kanpPEyTM2sEzmi"], ["created_at", "2019-12-11 22:53:35.358226"], ["updated_at", "2019-12-11 22:53:35.358226"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:35.360931"], ["updated_at", "2019-12-11 22:53:35.360931"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1320], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1545], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1545], ["room_id", 1320], ["created_at", "2019-12-11 22:53:35.370574"], ["updated_at", "2019-12-11 22:53:35.370574"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1320” for 127.0.0.1 at 2019-12-11 19:53:35 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:35.373289"], ["last_sign_in_at", "2019-12-11 22:53:35.373289"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:35.373857"], ["id", 1545]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1320"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1320], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1320')
Rendered appointments/show.html.erb within layouts/application (164.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 972ms (Views: 953.4ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1euIryZLWeY9AHvX4OOWGOyByaHhGQg53hoQy67DSshJPrSm4BDfm"], ["created_at", "2019-12-11 22:53:36.356912"], ["updated_at", "2019-12-11 22:53:36.356912"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.359315"], ["updated_at", "2019-12-11 22:53:36.359315"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1321], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1546], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1546], ["room_id", 1321], ["created_at", "2019-12-11 22:53:36.364504"], ["updated_at", "2019-12-11 22:53:36.364504"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1321], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1546], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1546], ["room_id", 1321], ["created_at", "2019-12-11 22:53:36.368530"], ["updated_at", "2019-12-11 22:53:36.368530"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.370933"], ["last_sign_in_at", "2019-12-11 22:53:36.370933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.371459"], ["id", 1546]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1546]]
Rendered appointments/my_appointments.html.erb within layouts/application (17.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 74ms (Views: 19.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3O5QYsZPPzdqyIcPMo4Sm.tjZ/JLpaHBvsIcHHlhlfH6UCHCdb/EK"], ["created_at", "2019-12-11 22:53:36.453914"], ["updated_at", "2019-12-11 22:53:36.453914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.456201"], ["updated_at", "2019-12-11 22:53:36.456201"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1322], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1547], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1547], ["room_id", 1322], ["created_at", "2019-12-11 22:53:36.460091"], ["updated_at", "2019-12-11 22:53:36.460091"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1322], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1547], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1547], ["room_id", 1322], ["created_at", "2019-12-11 22:53:36.465806"], ["updated_at", "2019-12-11 22:53:36.465806"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.468397"], ["last_sign_in_at", "2019-12-11 22:53:36.468397"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.469037"], ["id", 1547]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1547]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rSPrIYL2Gi5MNUApqljlZumeNRC/vev1C6BNG17XEKFgihxn/oeeW"], ["created_at", "2019-12-11 22:53:36.484924"], ["updated_at", "2019-12-11 22:53:36.484924"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.487809"], ["updated_at", "2019-12-11 22:53:36.487809"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1323], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1548], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1548], ["room_id", 1323], ["created_at", "2019-12-11 22:53:36.492883"], ["updated_at", "2019-12-11 22:53:36.492883"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/709” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.495507"], ["last_sign_in_at", "2019-12-11 22:53:36.495507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.496012"], ["id", 1548]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"709"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 709], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 709]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bQYfOGY1KZ.Bq9uZQLNNxOXx0yIZb9bDlNHavPAOYVixvJdB4Xuie"], ["created_at", "2019-12-11 22:53:36.511016"], ["updated_at", "2019-12-11 22:53:36.511016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.514117"], ["last_sign_in_at", "2019-12-11 22:53:36.514117"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.515057"], ["id", 1549]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 38ms (Views: 20.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ejDLJ5fBf8fiTOXnMbafqOJXOaRToXtDg9RHyqs6XCoU86KJNBbYK"], ["created_at", "2019-12-11 22:53:36.563044"], ["updated_at", "2019-12-11 22:53:36.563044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.565837"], ["updated_at", "2019-12-11 22:53:36.565837"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1324], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1550], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1550], ["room_id", 1324], ["created_at", "2019-12-11 22:53:36.569697"], ["updated_at", "2019-12-11 22:53:36.569697"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1324], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1550], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1550], ["room_id", 1324], ["created_at", "2019-12-11 22:53:36.573945"], ["updated_at", "2019-12-11 22:53:36.573945"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.576425"], ["last_sign_in_at", "2019-12-11 22:53:36.576425"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.576964"], ["id", 1550]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1324], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1550], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1550], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1I0xAk7I/nWvxJk3pKdsfOT87nMvLUkK84aLmSqTIXIJLFLW2gAjS"], ["created_at", "2019-12-11 22:53:36.592427"], ["updated_at", "2019-12-11 22:53:36.592427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.594753"], ["updated_at", "2019-12-11 22:53:36.594753"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1325], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1551], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1551], ["room_id", 1325], ["created_at", "2019-12-11 22:53:36.600176"], ["updated_at", "2019-12-11 22:53:36.600176"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1325], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1551], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1551], ["room_id", 1325], ["created_at", "2019-12-11 22:53:36.604961"], ["updated_at", "2019-12-11 22:53:36.604961"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.607561"], ["last_sign_in_at", "2019-12-11 22:53:36.607561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.608122"], ["id", 1551]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1325], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1551], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1551], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pHn7Tez/jpJF1ztbxhvb1.SldhSKOwuUkJ5uDsmgxKqAI2.caDtYa"], ["created_at", "2019-12-11 22:53:36.624906"], ["updated_at", "2019-12-11 22:53:36.624906"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.627357"], ["updated_at", "2019-12-11 22:53:36.627357"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1326], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1552], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1552], ["room_id", 1326], ["created_at", "2019-12-11 22:53:36.632906"], ["updated_at", "2019-12-11 22:53:36.632906"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1326], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1552], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1552], ["room_id", 1326], ["created_at", "2019-12-11 22:53:36.637226"], ["updated_at", "2019-12-11 22:53:36.637226"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.639706"], ["last_sign_in_at", "2019-12-11 22:53:36.639706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.640237"], ["id", 1552]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8TAZadLHqi82a9rXF2TJNuhNnPnyEGgePBosS.XTFf3BGG8fkIM6u"], ["created_at", "2019-12-11 22:53:36.653938"], ["updated_at", "2019-12-11 22:53:36.653938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.656293"], ["updated_at", "2019-12-11 22:53:36.656293"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1327], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1553], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1553], ["room_id", 1327], ["created_at", "2019-12-11 22:53:36.661076"], ["updated_at", "2019-12-11 22:53:36.661076"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1327], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1553], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1553], ["room_id", 1327], ["created_at", "2019-12-11 22:53:36.666717"], ["updated_at", "2019-12-11 22:53:36.666717"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.669354"], ["last_sign_in_at", "2019-12-11 22:53:36.669354"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.670127"], ["id", 1553]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1uWpPh2kZrm9ApvDBF3qVeAlRDiyv.SLv/VmE6Z1nK6tFDme2XMgS"], ["created_at", "2019-12-11 22:53:36.689556"], ["updated_at", "2019-12-11 22:53:36.689556"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.692544"], ["last_sign_in_at", "2019-12-11 22:53:36.692544"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.693317"], ["id", 1554]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (47.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 108ms (Views: 90.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aZgf3L3927mddFjOHXQIxuqDtXSztfWSl5slOFlR/MFJzRigLCfE."], ["created_at", "2019-12-11 22:53:36.816584"], ["updated_at", "2019-12-11 22:53:36.816584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.819691"], ["last_sign_in_at", "2019-12-11 22:53:36.819691"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.820311"], ["id", 1555]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.7ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2E5lmqvKLDMp62FLdOffGup4mo5uPObD34y3kh8atSjEJ7HH706BG"], ["created_at", "2019-12-11 22:53:36.833192"], ["updated_at", "2019-12-11 22:53:36.833192"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.836073"], ["last_sign_in_at", "2019-12-11 22:53:36.836073"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.836641"], ["id", 1556]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 23ms (Views: 4.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V2wth58jezLfVBLi5J15h.wuFdibCXf8/1hJMejj6lZIGbirI8hP6"], ["created_at", "2019-12-11 22:53:36.869342"], ["updated_at", "2019-12-11 22:53:36.869342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.872181"], ["last_sign_in_at", "2019-12-11 22:53:36.872181"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.872722"], ["id", 1557]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 19:53:36 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h58tNRqUFqsVFK/vpitON.qyam0U0O8ivah0pupo3EwqG5Xhz.8Gu"], ["created_at", "2019-12-11 22:53:36.897928"], ["updated_at", "2019-12-11 22:53:36.897928"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.900425"], ["updated_at", "2019-12-11 22:53:36.900425"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1328” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.903069"], ["last_sign_in_at", "2019-12-11 22:53:36.903069"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.903701"], ["id", 1558]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1328"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1328], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u1Yn5DyWb7NRnD0Ceia05.3nkt5jjWqiazE8b36yl5UD.bW75Svy6"], ["created_at", "2019-12-11 22:53:36.935074"], ["updated_at", "2019-12-11 22:53:36.935074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.937915"], ["updated_at", "2019-12-11 22:53:36.937915"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1329” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.940795"], ["last_sign_in_at", "2019-12-11 22:53:36.940795"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.941670"], ["id", 1559]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1329"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1329], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.953528"], ["updated_at", "2019-12-11 22:53:36.953528"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1330” for 127.0.0.1 at 2019-12-11 19:53:36 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1330"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yJlHDKqzqfO8DhVmwNIpUeNcIOU4zEzDQUPzSYla4J8yYsOK42KJ."], ["created_at", "2019-12-11 22:53:36.965878"], ["updated_at", "2019-12-11 22:53:36.965878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:36.968422"], ["updated_at", "2019-12-11 22:53:36.968422"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1331/edit” for 127.0.0.1 at 2019-12-11 19:53:36 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:36.971037"], ["last_sign_in_at", "2019-12-11 22:53:36.971037"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:36.971547"], ["id", 1560]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1331"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1331], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 23ms (Views: 5.1ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5LZibcaby0oKAt9.zOUxZuAVtugiwI9b5llZKHFE1bGeELVC7eixS"], ["created_at", "2019-12-11 22:53:37.003837"], ["updated_at", "2019-12-11 22:53:37.003837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.006275"], ["updated_at", "2019-12-11 22:53:37.006275"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1332/edit” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.008761"], ["last_sign_in_at", "2019-12-11 22:53:37.008761"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.009311"], ["id", 1561]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1332"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1332], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.032076"], ["updated_at", "2019-12-11 22:53:37.032076"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1333” for 127.0.0.1 at 2019-12-11 19:53:37 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1333"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W0objr2s.bmbOqwXcI23ROlnaJB03vamFcd0VYW3gQjok7HH9Lcx6"], ["created_at", "2019-12-11 22:53:37.043917"], ["updated_at", "2019-12-11 22:53:37.043917"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.047211"], ["last_sign_in_at", "2019-12-11 22:53:37.047211"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.048246"], ["id", 1562]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.051904"], ["updated_at", "2019-12-11 22:53:37.051904"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5QYKSxs4yWYs.r7vGrHIWuS1LDzRZzNn1QdbTZsAmKElQD1.vbywG"], ["created_at", "2019-12-11 22:53:37.060343"], ["updated_at", "2019-12-11 22:53:37.060343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.063700"], ["last_sign_in_at", "2019-12-11 22:53:37.063700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.064678"], ["id", 1563]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.068693"], ["updated_at", "2019-12-11 22:53:37.068693"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eBPju5m68vVOIQHDev4IN.qNTJaBOrOPWQYb32nww.Gs022gJN/iW"], ["created_at", "2019-12-11 22:53:37.077194"], ["updated_at", "2019-12-11 22:53:37.077194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.081392"], ["last_sign_in_at", "2019-12-11 22:53:37.081392"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.082230"], ["id", 1564]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (15.9ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 16.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kLgBEhQpc8ydh7CvQaKXleSOFeeiGD9orntlDAbIgL21.U7Cvn/Cm"], ["created_at", "2019-12-11 22:53:37.109103"], ["updated_at", "2019-12-11 22:53:37.109103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.111802"], ["last_sign_in_at", "2019-12-11 22:53:37.111802"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.112314"], ["id", 1565]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$x0fR7itGLJWs3hBlJuqd7eTzLGoCaZlrWfhBJ.PfzFWsvRnpnNpJu"], ["created_at", "2019-12-11 22:53:37.124143"], ["updated_at", "2019-12-11 22:53:37.124143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.126673"], ["last_sign_in_at", "2019-12-11 22:53:37.126673"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.127178"], ["id", 1566]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VSb/A6iFGWEMLPqIRIc1MObOfW0eKT9l/PSBUOTH2FCYm4ddUVYRa"], ["created_at", "2019-12-11 22:53:37.138805"], ["updated_at", "2019-12-11 22:53:37.138805"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.141547"], ["updated_at", "2019-12-11 22:53:37.141547"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1336” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.144765"], ["last_sign_in_at", "2019-12-11 22:53:37.144765"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.145692"], ["id", 1567]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1336"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1336], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 22:53:37.150497"], ["id", 1336]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1336 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JDpoLf07eU.RPDQATlcDaucVsKVVj6OvFB1tPezjQNE9OEgewjgBO"], ["created_at", "2019-12-11 22:53:37.158379"], ["updated_at", "2019-12-11 22:53:37.158379"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.160720"], ["updated_at", "2019-12-11 22:53:37.160720"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1337” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.164385"], ["last_sign_in_at", "2019-12-11 22:53:37.164385"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.165140"], ["id", 1568]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1337"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1337], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 22:53:37.169144"], ["id", 1337]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1337 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XM8Vq4lMOrSOBG1C0OLBneq73LKgjqMuBX.ThKikAIusoL8LnGQg."], ["created_at", "2019-12-11 22:53:37.178248"], ["updated_at", "2019-12-11 22:53:37.178248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.181684"], ["updated_at", "2019-12-11 22:53:37.181684"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1338” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.184410"], ["last_sign_in_at", "2019-12-11 22:53:37.184410"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.184943"], ["id", 1569]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1338"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1338], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PmdlxZTCFgQV0Q.0QjZxtub3sK7lxcFk4lTKHEE05R0YxQh8tI9uO"], ["created_at", "2019-12-11 22:53:37.199862"], ["updated_at", "2019-12-11 22:53:37.199862"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.202542"], ["updated_at", "2019-12-11 22:53:37.202542"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1339” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.205081"], ["last_sign_in_at", "2019-12-11 22:53:37.205081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.205733"], ["id", 1570]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1339"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1339], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VSzLW3RxE/0R/lwjTyZtUuy.hRRMpGzXioyqnE9SyXbTkIAOVlSiG"], ["created_at", "2019-12-11 22:53:37.222063"], ["updated_at", "2019-12-11 22:53:37.222063"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.224676"], ["last_sign_in_at", "2019-12-11 22:53:37.224676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.225183"], ["id", 1571]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JtQw4V00UvVjeQhxmYdnxedFmU5K6YoV.lFpmKGgBVfkQkxUw0Ns6"], ["created_at", "2019-12-11 22:53:37.236220"], ["updated_at", "2019-12-11 22:53:37.236220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.238489"], ["updated_at", "2019-12-11 22:53:37.238489"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1340” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.240533"], ["last_sign_in_at", "2019-12-11 22:53:37.240533"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.241235"], ["id", 1572]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1340"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1340], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1340]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VlTyZ8GhKAbhPZtnyAkp6uUEm5iUKdXDR4k2nFZyfiTRygCfoAWDe"], ["created_at", "2019-12-11 22:53:37.253386"], ["updated_at", "2019-12-11 22:53:37.253386"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.255772"], ["updated_at", "2019-12-11 22:53:37.255772"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1341” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.257823"], ["last_sign_in_at", "2019-12-11 22:53:37.257823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.258363"], ["id", 1573]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1341"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1341], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1341]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hnHotn6a.a81RX5kPopwzeyf26oZTDsdUVHEvsCSZPDY7KLQReZK6"], ["created_at", "2019-12-11 22:53:37.270790"], ["updated_at", "2019-12-11 22:53:37.270790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.272900"], ["updated_at", "2019-12-11 22:53:37.272900"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1342” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.274822"], ["last_sign_in_at", "2019-12-11 22:53:37.274822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.275376"], ["id", 1574]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1342"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EhPZBUEwj5ev76DHPIuXtOxiRrcBrzhMpyJZxvMNIKXI1jC.WUeaq"], ["created_at", "2019-12-11 22:53:37.285705"], ["updated_at", "2019-12-11 22:53:37.285705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 22:53:37.288048"], ["updated_at", "2019-12-11 22:53:37.288048"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1343” for 127.0.0.1 at 2019-12-11 19:53:37 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 22:53:37.290077"], ["last_sign_in_at", "2019-12-11 22:53:37.290077"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 22:53:37.290735"], ["id", 1575]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1343"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.Jra/OnmIoXv3olSGtlrMuC7KSKdOlecn4YUgyRC96JrzJEUX8j36"], ["created_at", "2019-12-11 23:06:37.113047"], ["updated_at", "2019-12-11 23:06:37.113047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:37.122752"], ["updated_at", "2019-12-11 23:06:37.122752"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1344"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1344], ["LIMIT", 1]]
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1344')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 159ms (Views: 113.5ms | ActiveRecord: 2.8ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$s0udHnzec9GD7yaRxfJTeO9Pxa7NFpRXO3jyxZMIGBAN4Me9OpnUK"], ["created_at", "2019-12-11 23:06:37.292006"], ["updated_at", "2019-12-11 23:06:37.292006"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:37.294379"], ["updated_at", "2019-12-11 23:06:37.294379"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1345], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1577], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1577], ["room_id", 1345], ["created_at", "2019-12-11 23:06:37.334742"], ["updated_at", "2019-12-11 23:06:37.334742"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1345"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1345], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1345')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ju5km/D6qsywg4VlOgXXSuNMZzLrBj28VzFf7Yj2H4GBAL8.XrTCW"], ["created_at", "2019-12-11 23:06:37.349430"], ["updated_at", "2019-12-11 23:06:37.349430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:37.351764"], ["updated_at", "2019-12-11 23:06:37.351764"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1346], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1578], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1578], ["room_id", 1346], ["created_at", "2019-12-11 23:06:37.356087"], ["updated_at", "2019-12-11 23:06:37.356087"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1346"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1346], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1346')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sAYS7i0zkM1eIaP9wv.j7OGHh21pS2W1EO7SS65HTKVKI9YfiLAly"], ["created_at", "2019-12-11 23:06:37.368058"], ["updated_at", "2019-12-11 23:06:37.368058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:37.370369"], ["updated_at", "2019-12-11 23:06:37.370369"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1347], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1579], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1579], ["room_id", 1347], ["created_at", "2019-12-11 23:06:37.375088"], ["updated_at", "2019-12-11 23:06:37.375088"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1347"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1347], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1347')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.brgOjO5Wzlj2I4AF5QCvuw/TrsYYEmlcZRcFRtwpBUZqRo171c86"], ["created_at", "2019-12-11 23:06:37.386946"], ["updated_at", "2019-12-11 23:06:37.386946"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:37.390541"], ["updated_at", "2019-12-11 23:06:37.390541"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1348], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1580], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1580], ["room_id", 1348], ["created_at", "2019-12-11 23:06:37.396156"], ["updated_at", "2019-12-11 23:06:37.396156"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1348"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1348], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1348')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 111ms (Views: 78.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OYoArcsJEMy9TtrGqqQDSuiL1GnbTvf0eM5xlb9Ck4V9wyVcnRX/6"], ["created_at", "2019-12-11 23:06:37.998933"], ["updated_at", "2019-12-11 23:06:37.998933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.001118"], ["updated_at", "2019-12-11 23:06:38.001118"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.017422"], ["last_sign_in_at", "2019-12-11 23:06:38.017422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.018076"], ["id", 1581]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1349"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1349], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1581], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1581], ["room_id", 1349], ["created_at", "2019-12-11 23:06:38.035268"], ["updated_at", "2019-12-11 23:06:38.035268"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1349], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2K6hUh6qEg20Nnk/sBldxe6l4/8xK2PXaTBjZCe2Nyqp9H78Ky.M2"], ["created_at", "2019-12-11 23:06:38.044631"], ["updated_at", "2019-12-11 23:06:38.044631"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.047879"], ["updated_at", "2019-12-11 23:06:38.047879"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.050923"], ["last_sign_in_at", "2019-12-11 23:06:38.050923"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.051552"], ["id", 1582]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1350"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1350], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1582], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1582], ["room_id", 1350], ["created_at", "2019-12-11 23:06:38.058596"], ["updated_at", "2019-12-11 23:06:38.058596"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$96Mf8quZf4sCjPkWSgq5xuG/hh8MnTf7Jj3sUD.veOta.M4z7Oiua"], ["created_at", "2019-12-11 23:06:38.066660"], ["updated_at", "2019-12-11 23:06:38.066660"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.068769"], ["updated_at", "2019-12-11 23:06:38.068769"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.071063"], ["last_sign_in_at", "2019-12-11 23:06:38.071063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.071670"], ["id", 1583]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1351"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1351], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1ILMaBqkUlzEeUg5t.YgfONe.hEkNICggDW8qzDaXe0ep9EtfB3AS"], ["created_at", "2019-12-11 23:06:38.086083"], ["updated_at", "2019-12-11 23:06:38.086083"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.088472"], ["updated_at", "2019-12-11 23:06:38.088472"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.091211"], ["last_sign_in_at", "2019-12-11 23:06:38.091211"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.091760"], ["id", 1584]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1352"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3xYt6ZXxNT6gbfYLdKTEf.xd37Dqsb3A2s4LFJRxLYrWYG98Mqs2G"], ["created_at", "2019-12-11 23:06:38.101658"], ["updated_at", "2019-12-11 23:06:38.101658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.103838"], ["updated_at", "2019-12-11 23:06:38.103838"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1353], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1585], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1585], ["room_id", 1353], ["created_at", "2019-12-11 23:06:38.107962"], ["updated_at", "2019-12-11 23:06:38.107962"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1353” for 127.0.0.1 at 2019-12-11 20:06:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.110359"], ["last_sign_in_at", "2019-12-11 23:06:38.110359"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.110844"], ["id", 1585]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1353"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1353], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1353')
Rendered appointments/show.html.erb within layouts/application (21.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 598ms (Views: 580.2ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$w2/7zn1p/SpjzMVhdRm/k.oWu4a6yNPk0gMU/oJhMp5G1jSAG2T.q"], ["created_at", "2019-12-11 23:06:38.718678"], ["updated_at", "2019-12-11 23:06:38.718678"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.720997"], ["updated_at", "2019-12-11 23:06:38.720997"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1354], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1586], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1586], ["room_id", 1354], ["created_at", "2019-12-11 23:06:38.725883"], ["updated_at", "2019-12-11 23:06:38.725883"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1354], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1586], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1586], ["room_id", 1354], ["created_at", "2019-12-11 23:06:38.729988"], ["updated_at", "2019-12-11 23:06:38.729988"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.732551"], ["last_sign_in_at", "2019-12-11 23:06:38.732551"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.733119"], ["id", 1586]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1586]]
Rendered appointments/my_appointments.html.erb within layouts/application (41.0ms)

Completed 500 Internal Server Error in 75ms (ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iDtV2mKY.521xuMQLVNTdefRzS5h3nyQVwGhCzWp3r1X4neJ1hA2K"], ["created_at", "2019-12-11 23:06:38.816121"], ["updated_at", "2019-12-11 23:06:38.816121"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.818248"], ["updated_at", "2019-12-11 23:06:38.818248"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1355], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1587], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1587], ["room_id", 1355], ["created_at", "2019-12-11 23:06:38.821879"], ["updated_at", "2019-12-11 23:06:38.821879"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1355], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1587], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1587], ["room_id", 1355], ["created_at", "2019-12-11 23:06:38.826381"], ["updated_at", "2019-12-11 23:06:38.826381"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.828879"], ["last_sign_in_at", "2019-12-11 23:06:38.828879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.829427"], ["id", 1587]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1587]]
Rendered appointments/my_appointments.html.erb within layouts/application (18.1ms)

Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$C5VTxKVuKK/dPjeLRUEkk.tAfwpRhXlvu024zh41XsLFKxWziRUiq"], ["created_at", "2019-12-11 23:06:38.858263"], ["updated_at", "2019-12-11 23:06:38.858263"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.860642"], ["updated_at", "2019-12-11 23:06:38.860642"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1356], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1588], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1588], ["room_id", 1356], ["created_at", "2019-12-11 23:06:38.864744"], ["updated_at", "2019-12-11 23:06:38.864744"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/729” for 127.0.0.1 at 2019-12-11 20:06:38 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.867139"], ["last_sign_in_at", "2019-12-11 23:06:38.867139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.867720"], ["id", 1588]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"729"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 729], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 729]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xJmueiefMfrAhDogLKV59uxbfW1frFOD4tyB9o7f73XkZpzrJC6g2"], ["created_at", "2019-12-11 23:06:38.882047"], ["updated_at", "2019-12-11 23:06:38.882047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.884481"], ["last_sign_in_at", "2019-12-11 23:06:38.884481"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.885033"], ["id", 1589]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 37ms (Views: 19.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rY3ZHPzRVog.530HaY.gg.4yWUdbYijk10UMniAkr1d9sQl./fXZS"], ["created_at", "2019-12-11 23:06:38.931278"], ["updated_at", "2019-12-11 23:06:38.931278"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.933592"], ["updated_at", "2019-12-11 23:06:38.933592"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1357], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1590], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1590], ["room_id", 1357], ["created_at", "2019-12-11 23:06:38.940092"], ["updated_at", "2019-12-11 23:06:38.940092"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1357], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1590], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1590], ["room_id", 1357], ["created_at", "2019-12-11 23:06:38.944614"], ["updated_at", "2019-12-11 23:06:38.944614"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:06:38 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:38.947094"], ["last_sign_in_at", "2019-12-11 23:06:38.947094"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:38.947629"], ["id", 1590]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1357], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1590], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1590], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BgdeDDfWshk7x9xI9tEwgOct9xgBna42jK9Rha7cSxEJdzlbDLvU."], ["created_at", "2019-12-11 23:06:38.963091"], ["updated_at", "2019-12-11 23:06:38.963091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:38.965585"], ["updated_at", "2019-12-11 23:06:38.965585"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1358], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1591], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1591], ["room_id", 1358], ["created_at", "2019-12-11 23:06:38.969829"], ["updated_at", "2019-12-11 23:06:38.969829"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1358], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1591], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1591], ["room_id", 1358], ["created_at", "2019-12-11 23:06:38.975720"], ["updated_at", "2019-12-11 23:06:38.975720"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.015063"], ["last_sign_in_at", "2019-12-11 23:06:39.015063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.015662"], ["id", 1591]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1358], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1591], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1591], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DZ/5yZnlDVQcv/VGJBBox.dDsO2A9GUX1WyTpNbW9UVO1tU/d2h66"], ["created_at", "2019-12-11 23:06:39.032606"], ["updated_at", "2019-12-11 23:06:39.032606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.035744"], ["updated_at", "2019-12-11 23:06:39.035744"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1359], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1592], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1592], ["room_id", 1359], ["created_at", "2019-12-11 23:06:39.041604"], ["updated_at", "2019-12-11 23:06:39.041604"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1359], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1592], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1592], ["room_id", 1359], ["created_at", "2019-12-11 23:06:39.046759"], ["updated_at", "2019-12-11 23:06:39.046759"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.049836"], ["last_sign_in_at", "2019-12-11 23:06:39.049836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.050406"], ["id", 1592]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7PT5QutY5jR8nRMceAQfT.wsVMtcu2X59IdePJfeFJItpDcBGdbWm"], ["created_at", "2019-12-11 23:06:39.066611"], ["updated_at", "2019-12-11 23:06:39.066611"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.069493"], ["updated_at", "2019-12-11 23:06:39.069493"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1360], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1593], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1593], ["room_id", 1360], ["created_at", "2019-12-11 23:06:39.076815"], ["updated_at", "2019-12-11 23:06:39.076815"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1360], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1593], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1593], ["room_id", 1360], ["created_at", "2019-12-11 23:06:39.081689"], ["updated_at", "2019-12-11 23:06:39.081689"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.084557"], ["last_sign_in_at", "2019-12-11 23:06:39.084557"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.085091"], ["id", 1593]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B0fgn7FFeDyhg5Wl25igxOuHxj8odKSbKokzGT/hGkdvrxiQAJ9RK"], ["created_at", "2019-12-11 23:06:39.101152"], ["updated_at", "2019-12-11 23:06:39.101152"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.104136"], ["last_sign_in_at", "2019-12-11 23:06:39.104136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.104697"], ["id", 1594]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.9ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 67ms (Views: 50.2ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o9swPUPJcttoBFwYeB/Jau3JA1hOySc9ubJ5mvlMEGawUcYbNkuKW"], ["created_at", "2019-12-11 23:06:39.185322"], ["updated_at", "2019-12-11 23:06:39.185322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.187917"], ["last_sign_in_at", "2019-12-11 23:06:39.187917"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.188512"], ["id", 1595]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zxi4aYjticupbFISUHTaIOliZcsEMHpdSHronQ8Bn3pCFo5mBFyG."], ["created_at", "2019-12-11 23:06:39.200823"], ["updated_at", "2019-12-11 23:06:39.200823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.203840"], ["last_sign_in_at", "2019-12-11 23:06:39.203840"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.204347"], ["id", 1596]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 22ms (Views: 4.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1f6oi9VTtkbBm.dJeZDRQeU3hb7peouGtfO2Fh5v4WjsPC2thWpNy"], ["created_at", "2019-12-11 23:06:39.235997"], ["updated_at", "2019-12-11 23:06:39.235997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.238762"], ["last_sign_in_at", "2019-12-11 23:06:39.238762"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.239425"], ["id", 1597]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fudasu1dxcRowvGanp3EL.L0AbYi/5N/uzQzmSqdMUjxuxI7FPByC"], ["created_at", "2019-12-11 23:06:39.263503"], ["updated_at", "2019-12-11 23:06:39.263503"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.265966"], ["updated_at", "2019-12-11 23:06:39.265966"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1361” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.268549"], ["last_sign_in_at", "2019-12-11 23:06:39.268549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.269069"], ["id", 1598]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1361"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1361], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 20ms (Views: 2.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o/xL5ytUXTtFSoDVJO/PXuy2YtzVtbvXovHX2M9p9Md/s4rdRI3B2"], ["created_at", "2019-12-11 23:06:39.298699"], ["updated_at", "2019-12-11 23:06:39.298699"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.301275"], ["updated_at", "2019-12-11 23:06:39.301275"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1362” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.303779"], ["last_sign_in_at", "2019-12-11 23:06:39.303779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.304696"], ["id", 1599]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1362"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1362], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.323294"], ["updated_at", "2019-12-11 23:06:39.323294"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1363” for 127.0.0.1 at 2019-12-11 20:06:39 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1363"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zHuV5XDLCndmr.n3d3bhWuaFeKusMPyxemDjEzW9apdF6mUnsgUn."], ["created_at", "2019-12-11 23:06:39.334429"], ["updated_at", "2019-12-11 23:06:39.334429"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.336856"], ["updated_at", "2019-12-11 23:06:39.336856"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1364/edit” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.339102"], ["last_sign_in_at", "2019-12-11 23:06:39.339102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.339848"], ["id", 1600]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1364"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1364], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b67N7D292PYoNdVB12LHmeGdab5XRShh3NfKCyj2hqis3xrh94MOS"], ["created_at", "2019-12-11 23:06:39.368487"], ["updated_at", "2019-12-11 23:06:39.368487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.370751"], ["updated_at", "2019-12-11 23:06:39.370751"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1365/edit” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.373056"], ["last_sign_in_at", "2019-12-11 23:06:39.373056"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.373658"], ["id", 1601]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1365"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1365], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.384292"], ["updated_at", "2019-12-11 23:06:39.384292"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1366” for 127.0.0.1 at 2019-12-11 20:06:39 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1366"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YkOQcxnTXMD5qWzeuyS2Ke.pKOcESpK1fNSlx243wietPAy8AuAxK"], ["created_at", "2019-12-11 23:06:39.396071"], ["updated_at", "2019-12-11 23:06:39.396071"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.398752"], ["last_sign_in_at", "2019-12-11 23:06:39.398752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.399250"], ["id", 1602]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.402528"], ["updated_at", "2019-12-11 23:06:39.402528"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p3pItI.3anCFXWxD7Phk6eMbFlA5pqAXuYvJmPRZ.0/JFydTf.JvG"], ["created_at", "2019-12-11 23:06:39.411399"], ["updated_at", "2019-12-11 23:06:39.411399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.414004"], ["last_sign_in_at", "2019-12-11 23:06:39.414004"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.414550"], ["id", 1603]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.417744"], ["updated_at", "2019-12-11 23:06:39.417744"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$enK5iUQinlHE42k/9zDPTeWIo1gHw8Lc4oCfq0PcZ8OjvN2fFfzm2"], ["created_at", "2019-12-11 23:06:39.426262"], ["updated_at", "2019-12-11 23:06:39.426262"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.428829"], ["last_sign_in_at", "2019-12-11 23:06:39.428829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.429325"], ["id", 1604]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ySX10r8gmPRhRM3.ACaAUuzgsLKeol4Mj.8eJX01JHI8pGnWbp5Wm"], ["created_at", "2019-12-11 23:06:39.440461"], ["updated_at", "2019-12-11 23:06:39.440461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.443117"], ["last_sign_in_at", "2019-12-11 23:06:39.443117"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.443636"], ["id", 1605]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Y/mTru1wkZKfedvorkMbv.Frpzf.aNaNmCeKkuo.WOwTwUbH0xK62"], ["created_at", "2019-12-11 23:06:39.454922"], ["updated_at", "2019-12-11 23:06:39.454922"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.457891"], ["last_sign_in_at", "2019-12-11 23:06:39.457891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.458493"], ["id", 1606]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2EjR27tbzOU3iDpWNfND/Oxf/aw04zuG29tl3CjStnO0R9U08S5.S"], ["created_at", "2019-12-11 23:06:39.468687"], ["updated_at", "2019-12-11 23:06:39.468687"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.470864"], ["updated_at", "2019-12-11 23:06:39.470864"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1369” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.474069"], ["last_sign_in_at", "2019-12-11 23:06:39.474069"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.474608"], ["id", 1607]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1369"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1369], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:06:39.478688"], ["id", 1369]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1369 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7vGv/ffsMEwf8eRTcR3kiOgdqtyz2Ma52rLsNqjFUQLVgM0dX/jjW"], ["created_at", "2019-12-11 23:06:39.487112"], ["updated_at", "2019-12-11 23:06:39.487112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.489770"], ["updated_at", "2019-12-11 23:06:39.489770"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1370” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.492440"], ["last_sign_in_at", "2019-12-11 23:06:39.492440"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.492986"], ["id", 1608]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1370"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1370], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:06:39.496855"], ["id", 1370]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1370 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zZdj8yWrRFPOnvAN6seKTOSL2NDdnskDR22aMZRLy4QxpB6H5kTbW"], ["created_at", "2019-12-11 23:06:39.505286"], ["updated_at", "2019-12-11 23:06:39.505286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.508003"], ["updated_at", "2019-12-11 23:06:39.508003"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1371” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.510593"], ["last_sign_in_at", "2019-12-11 23:06:39.510593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.511141"], ["id", 1609]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1371"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1371], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QZDlCJrkUaAeUxU/wug6p.kEKXjXkLdyI7VUHM10lg8xe3BvpA1eS"], ["created_at", "2019-12-11 23:06:39.525534"], ["updated_at", "2019-12-11 23:06:39.525534"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.529663"], ["updated_at", "2019-12-11 23:06:39.529663"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1372” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.532721"], ["last_sign_in_at", "2019-12-11 23:06:39.532721"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.533619"], ["id", 1610]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1372"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1372], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4Okgp3KjM2jNMz1MD0Mu0uR6IvNf9f0kZtBvcfHBPEY4FEuWSoU3K"], ["created_at", "2019-12-11 23:06:39.551393"], ["updated_at", "2019-12-11 23:06:39.551393"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.554734"], ["last_sign_in_at", "2019-12-11 23:06:39.554734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.555581"], ["id", 1611]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nsNMpQNzRD/NhW02GI9aSOMpRjCYxTNcjURuRAZ.Biibt8DT/C8cS"], ["created_at", "2019-12-11 23:06:39.567220"], ["updated_at", "2019-12-11 23:06:39.567220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.570343"], ["updated_at", "2019-12-11 23:06:39.570343"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1373” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.574646"], ["last_sign_in_at", "2019-12-11 23:06:39.574646"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.575352"], ["id", 1612]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1373"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1373], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1373]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.3ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iUV.wN3.unXVcy1dlAk9x.cTxaFCUFq0OkXpEn4dpQzT87V3u258m"], ["created_at", "2019-12-11 23:06:39.590940"], ["updated_at", "2019-12-11 23:06:39.590940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.595383"], ["updated_at", "2019-12-11 23:06:39.595383"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1374” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.597731"], ["last_sign_in_at", "2019-12-11 23:06:39.597731"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.598351"], ["id", 1613]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1374"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1374], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1374]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lvqv0X6QPFAeBi632u7ngO/AxeSiaVhBViLzcdvNbedEbNw3z5J0e"], ["created_at", "2019-12-11 23:06:39.611035"], ["updated_at", "2019-12-11 23:06:39.611035"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.613329"], ["updated_at", "2019-12-11 23:06:39.613329"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1375” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.615379"], ["last_sign_in_at", "2019-12-11 23:06:39.615379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.615889"], ["id", 1614]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1375"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7ttDiibJ1HxBMdJwF/nMZ.XksvzCBNfCqOCCDQHp.M/3aY8b4u37u"], ["created_at", "2019-12-11 23:06:39.625449"], ["updated_at", "2019-12-11 23:06:39.625449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:06:39.627704"], ["updated_at", "2019-12-11 23:06:39.627704"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1376” for 127.0.0.1 at 2019-12-11 20:06:39 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:06:39.629610"], ["last_sign_in_at", "2019-12-11 23:06:39.629610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:06:39.630120"], ["id", 1615]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1376"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2TaXkaiZ3Y5w6ZwspaGkQeOSNDk6vR4cMfSgi/EzRHpW.hvn1ivSS"], ["created_at", "2019-12-11 23:11:48.264242"], ["updated_at", "2019-12-11 23:11:48.264242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.273343"], ["updated_at", "2019-12-11 23:11:48.273343"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eHImDotbKquFQ2yadtECweFlyj3K9tTBofnrFYEUD1jd0aB7kebiG"], ["created_at", "2019-12-11 23:11:48.282272"], ["updated_at", "2019-12-11 23:11:48.282272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.285114"], ["updated_at", "2019-12-11 23:11:48.285114"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1378], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1617], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1617], ["room_id", 1378], ["created_at", "2019-12-11 23:11:48.334544"], ["updated_at", "2019-12-11 23:11:48.334544"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xmsfv9UeptHunkOQnZizCO7Z3.2fIcBBpLKFgUsVnYlYLFDrtQQy2"], ["created_at", "2019-12-11 23:11:48.343161"], ["updated_at", "2019-12-11 23:11:48.343161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.345450"], ["updated_at", "2019-12-11 23:11:48.345450"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1379], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1618], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1618], ["room_id", 1379], ["created_at", "2019-12-11 23:11:48.349607"], ["updated_at", "2019-12-11 23:11:48.349607"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TCZhgFP/AtGBriFPjeYt.eC4gTXinv0pXtliEBuCyvojhKZ.6v.I6"], ["created_at", "2019-12-11 23:11:48.357457"], ["updated_at", "2019-12-11 23:11:48.357457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.359794"], ["updated_at", "2019-12-11 23:11:48.359794"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1380], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1619], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1619], ["room_id", 1380], ["created_at", "2019-12-11 23:11:48.364232"], ["updated_at", "2019-12-11 23:11:48.364232"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JJJ1/S7wlWPS5G3XucF2ju3cvtvnKY3.vnsg/9cwZWDOD7e1L3mQu"], ["created_at", "2019-12-11 23:11:48.372595"], ["updated_at", "2019-12-11 23:11:48.372595"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.374831"], ["updated_at", "2019-12-11 23:11:48.374831"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1381"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1381], ["LIMIT", 1]]
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1381')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 149ms (Views: 115.7ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dZcgCIlE1JB0RjYqXD2liezxeQeTPgVj3ElGonyqe1COqNHtxQEG6"], ["created_at", "2019-12-11 23:11:48.534976"], ["updated_at", "2019-12-11 23:11:48.534976"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.537386"], ["updated_at", "2019-12-11 23:11:48.537386"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1382], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1621], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1621], ["room_id", 1382], ["created_at", "2019-12-11 23:11:48.542017"], ["updated_at", "2019-12-11 23:11:48.542017"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1382"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1382], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1382')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$P9kD/dAGWMFZs3iUG62YNujaEdjfRtcU9dIpMeLz6gh19iws3a9gm"], ["created_at", "2019-12-11 23:11:48.556178"], ["updated_at", "2019-12-11 23:11:48.556178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.558476"], ["updated_at", "2019-12-11 23:11:48.558476"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1383], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1622], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1622], ["room_id", 1383], ["created_at", "2019-12-11 23:11:48.562433"], ["updated_at", "2019-12-11 23:11:48.562433"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1383"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1383], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1383')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9tB1b9Pyrn7eZT9mouaZc.wwAX9llEj7bPgqeALjb.AccCT1kzYRu"], ["created_at", "2019-12-11 23:11:48.574453"], ["updated_at", "2019-12-11 23:11:48.574453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.576758"], ["updated_at", "2019-12-11 23:11:48.576758"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1384], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1623], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1623], ["room_id", 1384], ["created_at", "2019-12-11 23:11:48.580836"], ["updated_at", "2019-12-11 23:11:48.580836"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1384"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1384], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1384')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LSOLE4YpEMcFL0qA7/pPjO2FCdNZfzleIa386URXVwyDVvEbWv.LG"], ["created_at", "2019-12-11 23:11:48.591469"], ["updated_at", "2019-12-11 23:11:48.591469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:48.593799"], ["updated_at", "2019-12-11 23:11:48.593799"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1385], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1624], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1624], ["room_id", 1385], ["created_at", "2019-12-11 23:11:48.597700"], ["updated_at", "2019-12-11 23:11:48.597700"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1385"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1385], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1385')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 109ms (Views: 76.3ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qCD.IIHWLnTPegwf4YjdFuOb2TRguo4DBa81kS8ILaQxmOBBE0ZIq"], ["created_at", "2019-12-11 23:11:49.183599"], ["updated_at", "2019-12-11 23:11:49.183599"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.185642"], ["updated_at", "2019-12-11 23:11:49.185642"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.201930"], ["last_sign_in_at", "2019-12-11 23:11:49.201930"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.202560"], ["id", 1625]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1386"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1386], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1625], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1625], ["room_id", 1386], ["created_at", "2019-12-11 23:11:49.219606"], ["updated_at", "2019-12-11 23:11:49.219606"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1386], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BCkoSUhGf3TVdQJZ6Ssb3emVKtif1XoomyaLDmxVMe87gBLYX2obe"], ["created_at", "2019-12-11 23:11:49.232798"], ["updated_at", "2019-12-11 23:11:49.232798"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.235627"], ["updated_at", "2019-12-11 23:11:49.235627"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.237949"], ["last_sign_in_at", "2019-12-11 23:11:49.237949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.238505"], ["id", 1626]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1387"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1387], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1626], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1626], ["room_id", 1387], ["created_at", "2019-12-11 23:11:49.243451"], ["updated_at", "2019-12-11 23:11:49.243451"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zTfPtDnEH0ULOMHSISRFQ.b2eGBLMiXPjSLY.Etx8gOVdDtmttdhO"], ["created_at", "2019-12-11 23:11:49.252326"], ["updated_at", "2019-12-11 23:11:49.252326"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.254378"], ["updated_at", "2019-12-11 23:11:49.254378"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.256644"], ["last_sign_in_at", "2019-12-11 23:11:49.256644"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.257178"], ["id", 1627]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1388"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1388], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mGyOk81kT2oGot8sxsUzoudOIw9EoJiC7TlDPoc5oOBfqLHxpkM7."], ["created_at", "2019-12-11 23:11:49.265621"], ["updated_at", "2019-12-11 23:11:49.265621"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.268352"], ["updated_at", "2019-12-11 23:11:49.268352"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.270863"], ["last_sign_in_at", "2019-12-11 23:11:49.270863"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.271405"], ["id", 1628]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1389"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VpRNp6am66MORuA4zUrxFuN6q5VAuPbOGdZNlbeJfGvYRMIHHQ2mW"], ["created_at", "2019-12-11 23:11:49.281205"], ["updated_at", "2019-12-11 23:11:49.281205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.284005"], ["updated_at", "2019-12-11 23:11:49.284005"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1390], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1629], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1629], ["room_id", 1390], ["created_at", "2019-12-11 23:11:49.288661"], ["updated_at", "2019-12-11 23:11:49.288661"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1390” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.291106"], ["last_sign_in_at", "2019-12-11 23:11:49.291106"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.291623"], ["id", 1629]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1390"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1390], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1390')
Rendered appointments/show.html.erb within layouts/application (24.6ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 386ms (Views: 368.3ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qfh47QGKkes80QYewCPXG.q3VbzLCNf.zW4wNWK/FzeqTqjGt/I3G"], ["created_at", "2019-12-11 23:11:49.687720"], ["updated_at", "2019-12-11 23:11:49.687720"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.689963"], ["updated_at", "2019-12-11 23:11:49.689963"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1391], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1630], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1630], ["room_id", 1391], ["created_at", "2019-12-11 23:11:49.693897"], ["updated_at", "2019-12-11 23:11:49.693897"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1391], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1630], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1630], ["room_id", 1391], ["created_at", "2019-12-11 23:11:49.698339"], ["updated_at", "2019-12-11 23:11:49.698339"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.701348"], ["last_sign_in_at", "2019-12-11 23:11:49.701348"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.701910"], ["id", 1630]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1630]]
Rendered appointments/my_appointments.html.erb within layouts/application (21.9ms)

Completed 500 Internal Server Error in 75ms (ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0G9GtnOGgoLi.PQmaWxPtOwxfXKExiPcbr2SYDEQjWTwfgOnf6iKO"], ["created_at", "2019-12-11 23:11:49.786125"], ["updated_at", "2019-12-11 23:11:49.786125"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.788475"], ["updated_at", "2019-12-11 23:11:49.788475"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1392], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1631], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1631], ["room_id", 1392], ["created_at", "2019-12-11 23:11:49.792575"], ["updated_at", "2019-12-11 23:11:49.792575"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1392], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1631], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1631], ["room_id", 1392], ["created_at", "2019-12-11 23:11:49.796811"], ["updated_at", "2019-12-11 23:11:49.796811"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.799402"], ["last_sign_in_at", "2019-12-11 23:11:49.799402"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.800057"], ["id", 1631]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1631]]
Rendered appointments/my_appointments.html.erb within layouts/application (18.1ms)

Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rd1BuReTNzG/yemgqqOtFuMbHhTKOpu8u71MjmyfpjfswJvGVMmUa"], ["created_at", "2019-12-11 23:11:49.828522"], ["updated_at", "2019-12-11 23:11:49.828522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.830912"], ["updated_at", "2019-12-11 23:11:49.830912"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1393], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1632], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1632], ["room_id", 1393], ["created_at", "2019-12-11 23:11:49.835776"], ["updated_at", "2019-12-11 23:11:49.835776"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/752” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.838369"], ["last_sign_in_at", "2019-12-11 23:11:49.838369"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.838889"], ["id", 1632]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"752"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 752], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 752]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VtNxqCDUBgeteUjSkCNKwe.IIZsv4NjCEIU.H2Eexw0qNS4WbeCF2"], ["created_at", "2019-12-11 23:11:49.853346"], ["updated_at", "2019-12-11 23:11:49.853346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.855794"], ["last_sign_in_at", "2019-12-11 23:11:49.855794"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.856381"], ["id", 1633]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 37ms (Views: 19.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HfHZNL8F31UdaCmwR1vCq.UraD83jCzA0/BKFLOPdW4R07ASd4uFi"], ["created_at", "2019-12-11 23:11:49.903474"], ["updated_at", "2019-12-11 23:11:49.903474"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.905813"], ["updated_at", "2019-12-11 23:11:49.905813"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1394], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1634], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1634], ["room_id", 1394], ["created_at", "2019-12-11 23:11:49.909953"], ["updated_at", "2019-12-11 23:11:49.909953"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1394], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1634], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1634], ["room_id", 1394], ["created_at", "2019-12-11 23:11:49.915020"], ["updated_at", "2019-12-11 23:11:49.915020"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.918655"], ["last_sign_in_at", "2019-12-11 23:11:49.918655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.919768"], ["id", 1634]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1394], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1634], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1634], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xvV50uD0eIjbuQYrzFY5.OkYUhDyLBTlckKvBJRqvqSsiqnFcGht6"], ["created_at", "2019-12-11 23:11:49.939024"], ["updated_at", "2019-12-11 23:11:49.939024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.941922"], ["updated_at", "2019-12-11 23:11:49.941922"]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1395], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1635], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1635], ["room_id", 1395], ["created_at", "2019-12-11 23:11:49.946912"], ["updated_at", "2019-12-11 23:11:49.946912"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1395], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1635], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1635], ["room_id", 1395], ["created_at", "2019-12-11 23:11:49.952679"], ["updated_at", "2019-12-11 23:11:49.952679"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.957424"], ["last_sign_in_at", "2019-12-11 23:11:49.957424"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.958146"], ["id", 1635]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1395], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1635], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1635], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KDpF3566W5tvWsS21SkOBeGSIIyvcRNl4EygSz8kyCl04CKqYjrI2"], ["created_at", "2019-12-11 23:11:49.975663"], ["updated_at", "2019-12-11 23:11:49.975663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:49.978304"], ["updated_at", "2019-12-11 23:11:49.978304"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1396], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1636], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1636], ["room_id", 1396], ["created_at", "2019-12-11 23:11:49.983598"], ["updated_at", "2019-12-11 23:11:49.983598"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1396], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1636], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1636], ["room_id", 1396], ["created_at", "2019-12-11 23:11:49.988714"], ["updated_at", "2019-12-11 23:11:49.988714"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:11:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:49.991357"], ["last_sign_in_at", "2019-12-11 23:11:49.991357"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:49.992150"], ["id", 1636]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$R0s6L773EGTLI6oNEqN0k.1qRqOzU85fh00ZKmW5s8BhRVjPWucNK"], ["created_at", "2019-12-11 23:11:50.006571"], ["updated_at", "2019-12-11 23:11:50.006571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.009520"], ["updated_at", "2019-12-11 23:11:50.009520"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1397], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1637], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1637], ["room_id", 1397], ["created_at", "2019-12-11 23:11:50.015265"], ["updated_at", "2019-12-11 23:11:50.015265"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1397], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1637], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1637], ["room_id", 1397], ["created_at", "2019-12-11 23:11:50.020598"], ["updated_at", "2019-12-11 23:11:50.020598"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.023568"], ["last_sign_in_at", "2019-12-11 23:11:50.023568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.024074"], ["id", 1637]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j8Hu50h97JQKuZeZfhaaMeFR8gxd1Gz9sDoSyX.dvqG5OOVlSCOwG"], ["created_at", "2019-12-11 23:11:50.042160"], ["updated_at", "2019-12-11 23:11:50.042160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.045310"], ["last_sign_in_at", "2019-12-11 23:11:50.045310"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.046164"], ["id", 1638]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (10.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 68ms (Views: 50.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eCXmEUW7W/gzPg9V1kXv.OfB.4DhY1sahZqziuLqNK5vfLQPMZmbO"], ["created_at", "2019-12-11 23:11:50.128140"], ["updated_at", "2019-12-11 23:11:50.128140"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.131146"], ["last_sign_in_at", "2019-12-11 23:11:50.131146"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.132562"], ["id", 1639]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RPKXSwYAlLVNRDTs4srd4e5IiVQ2spPfnSuGeFio2wQe1V1n3oY26"], ["created_at", "2019-12-11 23:11:50.147302"], ["updated_at", "2019-12-11 23:11:50.147302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.151052"], ["last_sign_in_at", "2019-12-11 23:11:50.151052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.151702"], ["id", 1640]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (9.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 28ms (Views: 10.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Y2EtnA2G0vE8x.E6BE5Oc.wgviL1fdggDsA.SZw8eeo4ieG.5zFD."], ["created_at", "2019-12-11 23:11:50.188667"], ["updated_at", "2019-12-11 23:11:50.188667"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.190811"], ["last_sign_in_at", "2019-12-11 23:11:50.190811"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.191307"], ["id", 1641]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e9Asog//O.Cmmwb5hlUx1.NlGqIx/nmeeaGM4n5rUYbXK7e4aGn8e"], ["created_at", "2019-12-11 23:11:50.210074"], ["updated_at", "2019-12-11 23:11:50.210074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.212440"], ["updated_at", "2019-12-11 23:11:50.212440"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1398” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.214605"], ["last_sign_in_at", "2019-12-11 23:11:50.214605"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.215106"], ["id", 1642]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1398"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1398], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f26cs49K36484epJSYfwGuQADQ2EUuX21QGMT.yuOg.yNo6dKxf76"], ["created_at", "2019-12-11 23:11:50.242374"], ["updated_at", "2019-12-11 23:11:50.242374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.244589"], ["updated_at", "2019-12-11 23:11:50.244589"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1399” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.246642"], ["last_sign_in_at", "2019-12-11 23:11:50.246642"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.247137"], ["id", 1643]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1399"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1399], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.257092"], ["updated_at", "2019-12-11 23:11:50.257092"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1400” for 127.0.0.1 at 2019-12-11 20:11:50 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1400"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I6Zx6pGJta9OPl9J0sPBbu9v6L/TvmFto2xIvszOgwDcNFhMSez.a"], ["created_at", "2019-12-11 23:11:50.267717"], ["updated_at", "2019-12-11 23:11:50.267717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.270013"], ["updated_at", "2019-12-11 23:11:50.270013"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1401/edit” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.272067"], ["last_sign_in_at", "2019-12-11 23:11:50.272067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.272653"], ["id", 1644]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1401"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1401], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5/5rISIUut3Ls3hPsqNFUuZaNWlY50PEHZukmYUZav.mxb3vyaIPu"], ["created_at", "2019-12-11 23:11:50.301677"], ["updated_at", "2019-12-11 23:11:50.301677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.303865"], ["updated_at", "2019-12-11 23:11:50.303865"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1402/edit” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.305975"], ["last_sign_in_at", "2019-12-11 23:11:50.305975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.306568"], ["id", 1645]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1402"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1402], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.317497"], ["updated_at", "2019-12-11 23:11:50.317497"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1403” for 127.0.0.1 at 2019-12-11 20:11:50 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1403"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NNXFfFg0TaAj3OnYDTouGOPnX9wQziHDrospB22dgs51zqn3GuIFO"], ["created_at", "2019-12-11 23:11:50.328649"], ["updated_at", "2019-12-11 23:11:50.328649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.331396"], ["last_sign_in_at", "2019-12-11 23:11:50.331396"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.331922"], ["id", 1646]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.335935"], ["updated_at", "2019-12-11 23:11:50.335935"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3PP.QNPDW6Q9/NoyUbPAQu8eSiUjfEZcoPpTUtkVTdglaOwXbxuc2"], ["created_at", "2019-12-11 23:11:50.344569"], ["updated_at", "2019-12-11 23:11:50.344569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.347105"], ["last_sign_in_at", "2019-12-11 23:11:50.347105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.347614"], ["id", 1647]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.351555"], ["updated_at", "2019-12-11 23:11:50.351555"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9YHK3jsHVfcvXW/dM5qk3Oz/sWCu2R2HkPZiZYgnRca/Vu2JKfgP."], ["created_at", "2019-12-11 23:11:50.359885"], ["updated_at", "2019-12-11 23:11:50.359885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.362559"], ["last_sign_in_at", "2019-12-11 23:11:50.362559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.363061"], ["id", 1648]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zJJg90gsoNdV4TefpekIPOjzf2GPulmsUYlchZefkkn0nDWRgwnJ6"], ["created_at", "2019-12-11 23:11:50.374236"], ["updated_at", "2019-12-11 23:11:50.374236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.376747"], ["last_sign_in_at", "2019-12-11 23:11:50.376747"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.377256"], ["id", 1649]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0nairtzHDYBRulq1zulzz.fQt3I0u2Tn8sTznC6gtPMzml8CZbPgG"], ["created_at", "2019-12-11 23:11:50.388820"], ["updated_at", "2019-12-11 23:11:50.388820"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.391407"], ["last_sign_in_at", "2019-12-11 23:11:50.391407"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.391928"], ["id", 1650]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BQjSDPeOWEuy1SwN4CwaPetCy9lLArLZkh2zoL.zZqrz0GMctWhEi"], ["created_at", "2019-12-11 23:11:50.402686"], ["updated_at", "2019-12-11 23:11:50.402686"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.404882"], ["updated_at", "2019-12-11 23:11:50.404882"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1406” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.407331"], ["last_sign_in_at", "2019-12-11 23:11:50.407331"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.407844"], ["id", 1651]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1406"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1406], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:11:50.411670"], ["id", 1406]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1406 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Bz/OZf1TGfqusonY9KnWr.dhh/ZzYd111O2jjcbTd4re9SkECTIbG"], ["created_at", "2019-12-11 23:11:50.420424"], ["updated_at", "2019-12-11 23:11:50.420424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.422714"], ["updated_at", "2019-12-11 23:11:50.422714"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1407” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.425159"], ["last_sign_in_at", "2019-12-11 23:11:50.425159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.425735"], ["id", 1652]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1407"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1407], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:11:50.429780"], ["id", 1407]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1407 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3EcdC8D/iocEPiO8mXsMTunbtikMJ67SH055DmCYvPsNb2gIntW4C"], ["created_at", "2019-12-11 23:11:50.438557"], ["updated_at", "2019-12-11 23:11:50.438557"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.440743"], ["updated_at", "2019-12-11 23:11:50.440743"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1408” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.443150"], ["last_sign_in_at", "2019-12-11 23:11:50.443150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.443680"], ["id", 1653]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1408"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1408], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uAoSo2d53W1asj2nO95IyOM.o45Q7eP7d1Ff4oU/Jp4JW4zK3RDcW"], ["created_at", "2019-12-11 23:11:50.459529"], ["updated_at", "2019-12-11 23:11:50.459529"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.461737"], ["updated_at", "2019-12-11 23:11:50.461737"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1409” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.464012"], ["last_sign_in_at", "2019-12-11 23:11:50.464012"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.464573"], ["id", 1654]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1409"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1409], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T0tXjX6H6gcbmFdQGCDReOVL6125Ejj.nGMU0x5BXiNWtnH2ByPQu"], ["created_at", "2019-12-11 23:11:50.480229"], ["updated_at", "2019-12-11 23:11:50.480229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.484511"], ["last_sign_in_at", "2019-12-11 23:11:50.484511"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.485146"], ["id", 1655]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tTmoFDdsVV54hK5xgV2WAe.r5j7GH58C8.5F.iTRsAogvfFN6UtVu"], ["created_at", "2019-12-11 23:11:50.498472"], ["updated_at", "2019-12-11 23:11:50.498472"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.501194"], ["updated_at", "2019-12-11 23:11:50.501194"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1410” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.503337"], ["last_sign_in_at", "2019-12-11 23:11:50.503337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.503867"], ["id", 1656]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1410"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1410], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1410]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PgWdsETjpNlsaODoAF9pSObWFVEArGixn3lExbbnOzWtsPNlkKnfa"], ["created_at", "2019-12-11 23:11:50.515163"], ["updated_at", "2019-12-11 23:11:50.515163"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.517859"], ["updated_at", "2019-12-11 23:11:50.517859"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1411” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.519973"], ["last_sign_in_at", "2019-12-11 23:11:50.519973"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.520544"], ["id", 1657]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1411"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1411], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1411]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$g2TjNPJgR7PuDc.SNio.BOgehTdkErJmmHtxoVku3DK5RVotbow4K"], ["created_at", "2019-12-11 23:11:50.531994"], ["updated_at", "2019-12-11 23:11:50.531994"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.534817"], ["updated_at", "2019-12-11 23:11:50.534817"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1412” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.536822"], ["last_sign_in_at", "2019-12-11 23:11:50.536822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.537304"], ["id", 1658]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1412"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4kKybHsN0cJKLna9G5Ou/ucgv7G7hY/lyJucvNqk5/aWVHMCQACsK"], ["created_at", "2019-12-11 23:11:50.545939"], ["updated_at", "2019-12-11 23:11:50.545939"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:11:50.547991"], ["updated_at", "2019-12-11 23:11:50.547991"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1413” for 127.0.0.1 at 2019-12-11 20:11:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:11:50.550243"], ["last_sign_in_at", "2019-12-11 23:11:50.550243"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:11:50.550977"], ["id", 1659]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1413"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JBuvfYyP0KL4PiD/7Xqjv.imtgKG8wkGwbyceyv.CW34uS4f01u3."], ["created_at", "2019-12-11 23:17:24.611319"], ["updated_at", "2019-12-11 23:17:24.611319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.620158"], ["updated_at", "2019-12-11 23:17:24.620158"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$K/R7oowpuikvunao4AEAVutYVkPqpAPIkAg7l6FaC4heUYR9QAkgm"], ["created_at", "2019-12-11 23:17:24.628773"], ["updated_at", "2019-12-11 23:17:24.628773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.631042"], ["updated_at", "2019-12-11 23:17:24.631042"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1415], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1661], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1661], ["room_id", 1415], ["created_at", "2019-12-11 23:17:24.679145"], ["updated_at", "2019-12-11 23:17:24.679145"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RKgGmoLoNy8laB0FDPn5H.tEARsgrP0qyDZc2FpGgMy6jNfBVSSgm"], ["created_at", "2019-12-11 23:17:24.687300"], ["updated_at", "2019-12-11 23:17:24.687300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.689477"], ["updated_at", "2019-12-11 23:17:24.689477"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1416], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1662], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1662], ["room_id", 1416], ["created_at", "2019-12-11 23:17:24.693599"], ["updated_at", "2019-12-11 23:17:24.693599"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hi0RsUM/0GZQyyJ5AR92t.BkUAipdQ69MPMT8ZForKbW3eq8IF9za"], ["created_at", "2019-12-11 23:17:24.700929"], ["updated_at", "2019-12-11 23:17:24.700929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.703107"], ["updated_at", "2019-12-11 23:17:24.703107"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1417], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1663], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1663], ["room_id", 1417], ["created_at", "2019-12-11 23:17:24.707238"], ["updated_at", "2019-12-11 23:17:24.707238"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NC8kR9JksMhmZ8DpILiEt.9oEshf2HTAqe23bWNhEOdeyzsnsXu9u"], ["created_at", "2019-12-11 23:17:24.716933"], ["updated_at", "2019-12-11 23:17:24.716933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.719066"], ["updated_at", "2019-12-11 23:17:24.719066"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1418"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1418], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1418')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 149ms (Views: 115.3ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8VModfFidB4AbDFypEDjEOaPeBSiz6OQ0B4i36zaj.acixKpxDO.W"], ["created_at", "2019-12-11 23:17:24.878023"], ["updated_at", "2019-12-11 23:17:24.878023"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.880406"], ["updated_at", "2019-12-11 23:17:24.880406"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1419], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1665], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1665], ["room_id", 1419], ["created_at", "2019-12-11 23:17:24.884752"], ["updated_at", "2019-12-11 23:17:24.884752"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1419"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1419], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1419')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xKqOzOdvynnK/hLLGgPJuOy2WAgeXEhw1QxMJ1MUogCDVFDeVm3Ki"], ["created_at", "2019-12-11 23:17:24.898697"], ["updated_at", "2019-12-11 23:17:24.898697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.900970"], ["updated_at", "2019-12-11 23:17:24.900970"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1420], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1666], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1666], ["room_id", 1420], ["created_at", "2019-12-11 23:17:24.904928"], ["updated_at", "2019-12-11 23:17:24.904928"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1420"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1420], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1420')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$82WuL1Kk2PvbHhsIWqzFNeyEpazaDBbxC84aQ2AdCW7HVvfa9UzJ."], ["created_at", "2019-12-11 23:17:24.916878"], ["updated_at", "2019-12-11 23:17:24.916878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.919199"], ["updated_at", "2019-12-11 23:17:24.919199"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1421], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1667], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1667], ["room_id", 1421], ["created_at", "2019-12-11 23:17:24.923204"], ["updated_at", "2019-12-11 23:17:24.923204"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1421"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1421], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1421')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$byThGoMtsR59cKQcBpPfmOKh0l5118eUdSErg5ftRBNUhXyqaBhF."], ["created_at", "2019-12-11 23:17:24.934065"], ["updated_at", "2019-12-11 23:17:24.934065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:24.936451"], ["updated_at", "2019-12-11 23:17:24.936451"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1422], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1668], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1668], ["room_id", 1422], ["created_at", "2019-12-11 23:17:24.940489"], ["updated_at", "2019-12-11 23:17:24.940489"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1422"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1422], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1422')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 109ms (Views: 76.3ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DcxqG2vqF9zoYR5GyBhbN.odt9bgMFdf3dbF2UrMfTYEWS813vfTu"], ["created_at", "2019-12-11 23:17:25.523576"], ["updated_at", "2019-12-11 23:17:25.523576"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:25.525825"], ["updated_at", "2019-12-11 23:17:25.525825"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:17:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:25.542713"], ["last_sign_in_at", "2019-12-11 23:17:25.542713"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:25.543545"], ["id", 1669]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1423"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1423], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1669], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1669], ["room_id", 1423], ["created_at", "2019-12-11 23:17:25.561027"], ["updated_at", "2019-12-11 23:17:25.561027"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1423], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rue4mdIRFjyIxTzVhnQIc.z5zCHd85Tmyz1zBBTfxA4GUgARA8Oi2"], ["created_at", "2019-12-11 23:17:25.574620"], ["updated_at", "2019-12-11 23:17:25.574620"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:25.577165"], ["updated_at", "2019-12-11 23:17:25.577165"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:17:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:25.579831"], ["last_sign_in_at", "2019-12-11 23:17:25.579831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:25.580487"], ["id", 1670]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1424"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1424], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1670], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1670], ["room_id", 1424], ["created_at", "2019-12-11 23:17:25.586005"], ["updated_at", "2019-12-11 23:17:25.586005"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GOHQIxpaCcch1DkcJ41kfeNvBaMn0la7WouGnecgrz1brra09NZ0C"], ["created_at", "2019-12-11 23:17:25.595203"], ["updated_at", "2019-12-11 23:17:25.595203"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:25.597643"], ["updated_at", "2019-12-11 23:17:25.597643"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:17:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:25.600047"], ["last_sign_in_at", "2019-12-11 23:17:25.600047"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:25.600551"], ["id", 1671]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1425"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1425], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YX9rAHsrXOiEjznY9ixIQ.fsBbCFuy8YCMIu6OjNhnlHvO/Xz4d.2"], ["created_at", "2019-12-11 23:17:25.609295"], ["updated_at", "2019-12-11 23:17:25.609295"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:25.611981"], ["updated_at", "2019-12-11 23:17:25.611981"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:17:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:25.614550"], ["last_sign_in_at", "2019-12-11 23:17:25.614550"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:25.615076"], ["id", 1672]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1426"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lSIVO8wIHObxSlq0ruKdSOQcjxjBgCSo9sZZ7EjBrcG7aQZSe5RoO"], ["created_at", "2019-12-11 23:17:25.625091"], ["updated_at", "2019-12-11 23:17:25.625091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:25.627986"], ["updated_at", "2019-12-11 23:17:25.627986"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1427], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1673], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1673], ["room_id", 1427], ["created_at", "2019-12-11 23:17:25.632447"], ["updated_at", "2019-12-11 23:17:25.632447"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1427” for 127.0.0.1 at 2019-12-11 20:17:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:25.634817"], ["last_sign_in_at", "2019-12-11 23:17:25.634817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:25.635300"], ["id", 1673]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1427"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1427], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1427')
Rendered appointments/show.html.erb within layouts/application (21.0ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 365ms (Views: 347.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$e3P/yLYh1ZOwrWqZA8G.uewn5V/ckAWAy1jOQAmOZLe7Y28oD3/MC"], ["created_at", "2019-12-11 23:17:26.010399"], ["updated_at", "2019-12-11 23:17:26.010399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.013244"], ["updated_at", "2019-12-11 23:17:26.013244"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1428], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1674], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1674], ["room_id", 1428], ["created_at", "2019-12-11 23:17:26.017455"], ["updated_at", "2019-12-11 23:17:26.017455"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1428], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1674], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1674], ["room_id", 1428], ["created_at", "2019-12-11 23:17:26.021535"], ["updated_at", "2019-12-11 23:17:26.021535"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.023846"], ["last_sign_in_at", "2019-12-11 23:17:26.023846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.024452"], ["id", 1674]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1674]]
Rendered appointments/my_appointments.html.erb within layouts/application (21.3ms)

Completed 500 Internal Server Error in 54ms (ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gXMFZ3Ar1QbDs5HG0SgfLOo4pgsatjFarIS5Q8Z//ek3D9LmtOokm"], ["created_at", "2019-12-11 23:17:26.086418"], ["updated_at", "2019-12-11 23:17:26.086418"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.088640"], ["updated_at", "2019-12-11 23:17:26.088640"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1429], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1675], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1675], ["room_id", 1429], ["created_at", "2019-12-11 23:17:26.092656"], ["updated_at", "2019-12-11 23:17:26.092656"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1429], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1675], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1675], ["room_id", 1429], ["created_at", "2019-12-11 23:17:26.097093"], ["updated_at", "2019-12-11 23:17:26.097093"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.099565"], ["last_sign_in_at", "2019-12-11 23:17:26.099565"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.100091"], ["id", 1675]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1675]]
Rendered appointments/my_appointments.html.erb within layouts/application (17.5ms)

Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/bE13HE8L63j0hvodzd4POwBUSVNa9lMIntMry5LYu91PAAQAoJ8q"], ["created_at", "2019-12-11 23:17:26.128492"], ["updated_at", "2019-12-11 23:17:26.128492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.130908"], ["updated_at", "2019-12-11 23:17:26.130908"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1430], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1676], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1676], ["room_id", 1430], ["created_at", "2019-12-11 23:17:26.135506"], ["updated_at", "2019-12-11 23:17:26.135506"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/775” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.137959"], ["last_sign_in_at", "2019-12-11 23:17:26.137959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.138548"], ["id", 1676]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"775"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 775], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 775]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cOTfOdLtEf.gKfcmQflOhetqmYDplhWNdG7ma.RjhJA.RUrqcIDmO"], ["created_at", "2019-12-11 23:17:26.153144"], ["updated_at", "2019-12-11 23:17:26.153144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.155649"], ["last_sign_in_at", "2019-12-11 23:17:26.155649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.156155"], ["id", 1677]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 38ms (Views: 20.6ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WJO7Gd4dcmqHe1B7DoRuf.ebDSsMsnyPUSpnk72eAmiKraXHCw4YS"], ["created_at", "2019-12-11 23:17:26.204187"], ["updated_at", "2019-12-11 23:17:26.204187"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.206565"], ["updated_at", "2019-12-11 23:17:26.206565"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1431], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1678], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1678], ["room_id", 1431], ["created_at", "2019-12-11 23:17:26.210865"], ["updated_at", "2019-12-11 23:17:26.210865"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1431], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1678], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1678], ["room_id", 1431], ["created_at", "2019-12-11 23:17:26.216877"], ["updated_at", "2019-12-11 23:17:26.216877"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.220178"], ["last_sign_in_at", "2019-12-11 23:17:26.220178"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.220738"], ["id", 1678]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1431], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1678], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1678], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pTqXhtW9H4MYTGg3kNz.2eD.FjquX7yUy8sF9fE1yID5LFGSUxsQq"], ["created_at", "2019-12-11 23:17:26.240009"], ["updated_at", "2019-12-11 23:17:26.240009"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.243000"], ["updated_at", "2019-12-11 23:17:26.243000"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1432], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1679], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1679], ["room_id", 1432], ["created_at", "2019-12-11 23:17:26.248684"], ["updated_at", "2019-12-11 23:17:26.248684"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1432], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1679], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1679], ["room_id", 1432], ["created_at", "2019-12-11 23:17:26.256063"], ["updated_at", "2019-12-11 23:17:26.256063"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.258853"], ["last_sign_in_at", "2019-12-11 23:17:26.258853"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.259368"], ["id", 1679]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1432], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1679], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1679], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5FV5FnGp1ubReVxmJ/vKBut4.0s1pqVuaiVHSww9ldLpp91GC8wEG"], ["created_at", "2019-12-11 23:17:26.277837"], ["updated_at", "2019-12-11 23:17:26.277837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.280643"], ["updated_at", "2019-12-11 23:17:26.280643"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1433], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1680], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1680], ["room_id", 1433], ["created_at", "2019-12-11 23:17:26.285382"], ["updated_at", "2019-12-11 23:17:26.285382"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.5ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1433], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1680], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1680], ["room_id", 1433], ["created_at", "2019-12-11 23:17:26.291398"], ["updated_at", "2019-12-11 23:17:26.291398"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.294791"], ["last_sign_in_at", "2019-12-11 23:17:26.294791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.295420"], ["id", 1680]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4d5TewyiHtWWsMfxNiJy/.VcrHRIAus0VQrdVApyWvrDgaMCp91ga"], ["created_at", "2019-12-11 23:17:26.309218"], ["updated_at", "2019-12-11 23:17:26.309218"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.312277"], ["updated_at", "2019-12-11 23:17:26.312277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1434], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1681], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1681], ["room_id", 1434], ["created_at", "2019-12-11 23:17:26.317342"], ["updated_at", "2019-12-11 23:17:26.317342"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1434], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1681], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1681], ["room_id", 1434], ["created_at", "2019-12-11 23:17:26.323083"], ["updated_at", "2019-12-11 23:17:26.323083"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.326099"], ["last_sign_in_at", "2019-12-11 23:17:26.326099"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.326870"], ["id", 1681]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SwLuMq.XKP0gFOa8y3mRn.KzBjpWX/XHJy4kaJleKbITRkqWCEwia"], ["created_at", "2019-12-11 23:17:26.345111"], ["updated_at", "2019-12-11 23:17:26.345111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.348476"], ["last_sign_in_at", "2019-12-11 23:17:26.348476"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.349300"], ["id", 1682]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.7ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 68ms (Views: 50.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IfaWn.vsPA2kvOr.YZDQYum8ZGtcxyjCEi4xQ/nw8ss1xyk2GW6ni"], ["created_at", "2019-12-11 23:17:26.430452"], ["updated_at", "2019-12-11 23:17:26.430452"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.433028"], ["last_sign_in_at", "2019-12-11 23:17:26.433028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.433510"], ["id", 1683]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.7ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xcp05WsmrghKinC6DlRLqu85S67jpVB/3XS4fEMRH9fo99p1/sTpu"], ["created_at", "2019-12-11 23:17:26.446585"], ["updated_at", "2019-12-11 23:17:26.446585"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.449208"], ["last_sign_in_at", "2019-12-11 23:17:26.449208"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.449703"], ["id", 1684]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (8.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 27ms (Views: 9.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0C8pRKAGa0q6kov.ahsXOuDj7dXYA8119wrzrevWx/9NLGRtjrjIq"], ["created_at", "2019-12-11 23:17:26.485749"], ["updated_at", "2019-12-11 23:17:26.485749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.488104"], ["last_sign_in_at", "2019-12-11 23:17:26.488104"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.488618"], ["id", 1685]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wv3YEzWhDTtmCCf4V1w4LeV6oTtA8DNYpOaw1FpudWI.MGxc/CISG"], ["created_at", "2019-12-11 23:17:26.508346"], ["updated_at", "2019-12-11 23:17:26.508346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.511671"], ["updated_at", "2019-12-11 23:17:26.511671"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1435” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.514007"], ["last_sign_in_at", "2019-12-11 23:17:26.514007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.514597"], ["id", 1686]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1435"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1435], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZAzP87aBJYl8CKgZiFpz1e1TT6MMng32uG1JSXJmp2zx8MUhoqDSK"], ["created_at", "2019-12-11 23:17:26.541944"], ["updated_at", "2019-12-11 23:17:26.541944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.544479"], ["updated_at", "2019-12-11 23:17:26.544479"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1436” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.546758"], ["last_sign_in_at", "2019-12-11 23:17:26.546758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.547289"], ["id", 1687]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1436"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1436], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.558444"], ["updated_at", "2019-12-11 23:17:26.558444"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1437” for 127.0.0.1 at 2019-12-11 20:17:26 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1437"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8dcWTjTK0D3M/EGpZ1u7WegJ1LURN8L04cn4DmQSxJMheUAobLoba"], ["created_at", "2019-12-11 23:17:26.569370"], ["updated_at", "2019-12-11 23:17:26.569370"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.571643"], ["updated_at", "2019-12-11 23:17:26.571643"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1438/edit” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.573814"], ["last_sign_in_at", "2019-12-11 23:17:26.573814"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.574451"], ["id", 1688]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1438"}
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1438], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.6ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4ArrOGGWyqen.HfNcVQxH.bHarH85Xv0OZg36QoLiwssqewFNFEG."], ["created_at", "2019-12-11 23:17:26.604294"], ["updated_at", "2019-12-11 23:17:26.604294"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.606674"], ["updated_at", "2019-12-11 23:17:26.606674"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1439/edit” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.608923"], ["last_sign_in_at", "2019-12-11 23:17:26.608923"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.609463"], ["id", 1689]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1439"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1439], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.620654"], ["updated_at", "2019-12-11 23:17:26.620654"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1440” for 127.0.0.1 at 2019-12-11 20:17:26 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1440"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1lWnldUeAWLP3GD53.6xwuJ3V3jWRXtfBJyqdIJcfVEA5qScXsPq6"], ["created_at", "2019-12-11 23:17:26.632685"], ["updated_at", "2019-12-11 23:17:26.632685"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.635315"], ["last_sign_in_at", "2019-12-11 23:17:26.635315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.635832"], ["id", 1690]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.639576"], ["updated_at", "2019-12-11 23:17:26.639576"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$X6rX9mXNf3N0dR0PstGfTeA5unoQXKDlaXhI0TP5ieM3mv1EB2xZa"], ["created_at", "2019-12-11 23:17:26.648350"], ["updated_at", "2019-12-11 23:17:26.648350"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.650933"], ["last_sign_in_at", "2019-12-11 23:17:26.650933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.651460"], ["id", 1691]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.654535"], ["updated_at", "2019-12-11 23:17:26.654535"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bxpWz87z8JsYx/v7fBjd0.Up1ttLhuYNlCeeyKgHiVa0qlyBsBbDG"], ["created_at", "2019-12-11 23:17:26.663449"], ["updated_at", "2019-12-11 23:17:26.663449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.666180"], ["last_sign_in_at", "2019-12-11 23:17:26.666180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.666791"], ["id", 1692]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$c8h6I4rALlqRjv3ry/3RMejKZ/EvBe669YxsHBYmQyNQD/DzHNGHG"], ["created_at", "2019-12-11 23:17:26.677540"], ["updated_at", "2019-12-11 23:17:26.677540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.680376"], ["last_sign_in_at", "2019-12-11 23:17:26.680376"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.680926"], ["id", 1693]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KFrh4XSaQ1pHy2Jc9w6SJOwJZ62HQF0B6MvrJk7RrD3bz9ZrsERyi"], ["created_at", "2019-12-11 23:17:26.691923"], ["updated_at", "2019-12-11 23:17:26.691923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.694927"], ["last_sign_in_at", "2019-12-11 23:17:26.694927"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.695584"], ["id", 1694]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ayq6HPb8qu40MxZDoc3OBeAWT7FNiN3.xQzvJCCRbShEdHH99ioni"], ["created_at", "2019-12-11 23:17:26.706513"], ["updated_at", "2019-12-11 23:17:26.706513"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.708823"], ["updated_at", "2019-12-11 23:17:26.708823"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1443” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.711569"], ["last_sign_in_at", "2019-12-11 23:17:26.711569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.712137"], ["id", 1695]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1443"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1443], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:17:26.716072"], ["id", 1443]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1443 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zq5VypnbYuTHDsQaJ/TdPusyESTKo7X0vqvj1jtclpAjLzm64QTma"], ["created_at", "2019-12-11 23:17:26.724424"], ["updated_at", "2019-12-11 23:17:26.724424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.726713"], ["updated_at", "2019-12-11 23:17:26.726713"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1444” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.729835"], ["last_sign_in_at", "2019-12-11 23:17:26.729835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.730469"], ["id", 1696]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1444"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1444], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:17:26.734524"], ["id", 1444]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1444 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$z343uxDWRxJ3CzlZ3ZImN.GLmw5PRs264iBpLKbq64Jl0kESO3Lli"], ["created_at", "2019-12-11 23:17:26.743545"], ["updated_at", "2019-12-11 23:17:26.743545"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.746398"], ["updated_at", "2019-12-11 23:17:26.746398"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1445” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.748949"], ["last_sign_in_at", "2019-12-11 23:17:26.748949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.749533"], ["id", 1697]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1445"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1445], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$flXjxOouY9fcSoK08nFvLuZk/gl2pxHG2pdcsU8mOAQZbAS5MhxtG"], ["created_at", "2019-12-11 23:17:26.764226"], ["updated_at", "2019-12-11 23:17:26.764226"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.766528"], ["updated_at", "2019-12-11 23:17:26.766528"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1446” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.769123"], ["last_sign_in_at", "2019-12-11 23:17:26.769123"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.769676"], ["id", 1698]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1446"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1446], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ip4xuS0..j8KQvc9vq03X.aohnADgSp8pZDe4C8NqGHyqDZUJuwCa"], ["created_at", "2019-12-11 23:17:26.784753"], ["updated_at", "2019-12-11 23:17:26.784753"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.787549"], ["last_sign_in_at", "2019-12-11 23:17:26.787549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.788065"], ["id", 1699]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UVCfR81JpMMcJkTtXljXl.8FL6zYiOoevB.GgI6VK0q6RobvK/dKu"], ["created_at", "2019-12-11 23:17:26.802382"], ["updated_at", "2019-12-11 23:17:26.802382"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.804577"], ["updated_at", "2019-12-11 23:17:26.804577"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1447” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.806458"], ["last_sign_in_at", "2019-12-11 23:17:26.806458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.806952"], ["id", 1700]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1447"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1447], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1447]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h/wYFNzHphSSAlsg7eBH2.YZXcTb1DVAPn0iw8BYWIhSulkYtY7na"], ["created_at", "2019-12-11 23:17:26.818777"], ["updated_at", "2019-12-11 23:17:26.818777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.820860"], ["updated_at", "2019-12-11 23:17:26.820860"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1448” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.822756"], ["last_sign_in_at", "2019-12-11 23:17:26.822756"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.823326"], ["id", 1701]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1448"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1448], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1448]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ABhWf1jUKvBX1uGePT/IWuFPajki.PrGLLb6e7e8vaTig6nd/Hb4u"], ["created_at", "2019-12-11 23:17:26.835193"], ["updated_at", "2019-12-11 23:17:26.835193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.837448"], ["updated_at", "2019-12-11 23:17:26.837448"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1449” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.839395"], ["last_sign_in_at", "2019-12-11 23:17:26.839395"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.839907"], ["id", 1702]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1449"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XpFFCVmnFQTjxax1sFyHWONqrNcmINLfrY7N1IEzAGPnIfClhuAfu"], ["created_at", "2019-12-11 23:17:26.849441"], ["updated_at", "2019-12-11 23:17:26.849441"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:17:26.851676"], ["updated_at", "2019-12-11 23:17:26.851676"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1450” for 127.0.0.1 at 2019-12-11 20:17:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:17:26.853555"], ["last_sign_in_at", "2019-12-11 23:17:26.853555"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:17:26.854065"], ["id", 1703]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1450"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$J4JY.J0tpxzhyD6XsdpXDu95.IpF79BddtUfSce0YWvOvvSTIJWxi"], ["created_at", "2019-12-11 23:22:44.956681"], ["updated_at", "2019-12-11 23:22:44.956681"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.0ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:44.965723"], ["updated_at", "2019-12-11 23:22:44.965723"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5rGpPgGlxjqu8w7Cb0d8k.0xaLPcWG5MUjsgmwuXmciFwATiICYY6"], ["created_at", "2019-12-11 23:22:44.976001"], ["updated_at", "2019-12-11 23:22:44.976001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:44.978325"], ["updated_at", "2019-12-11 23:22:44.978325"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1452], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1705], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1705], ["room_id", 1452], ["created_at", "2019-12-11 23:22:45.030523"], ["updated_at", "2019-12-11 23:22:45.030523"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4NTN0D07.gUjTFILvMmPJ.jdcDtSH44OfrsodkylCSpcHEZXzGFMS"], ["created_at", "2019-12-11 23:22:45.257221"], ["updated_at", "2019-12-11 23:22:45.257221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.259564"], ["updated_at", "2019-12-11 23:22:45.259564"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1453], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1706], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1706], ["room_id", 1453], ["created_at", "2019-12-11 23:22:45.263597"], ["updated_at", "2019-12-11 23:22:45.263597"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HQYFyTa.2dCt0ng2xHmqleZJ0rdP1jYeguAJ9shsRPsMJxDKq3Emy"], ["created_at", "2019-12-11 23:22:45.272254"], ["updated_at", "2019-12-11 23:22:45.272254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.274702"], ["updated_at", "2019-12-11 23:22:45.274702"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1454], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1707], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1707], ["room_id", 1454], ["created_at", "2019-12-11 23:22:45.278754"], ["updated_at", "2019-12-11 23:22:45.278754"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$v58jCKNqUJZI2jCqI5PdsOoMW74YvqA7cPdrwV4O2/XspKeHbDRJy"], ["created_at", "2019-12-11 23:22:45.288793"], ["updated_at", "2019-12-11 23:22:45.288793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.291442"], ["updated_at", "2019-12-11 23:22:45.291442"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1455"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1455], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1455')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 152ms (Views: 118.5ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nM4WXJAfZYwhqvsBTMdJTeB14r9ONuUPNcckspWS/7kBJOcKtMaT2"], ["created_at", "2019-12-11 23:22:45.452632"], ["updated_at", "2019-12-11 23:22:45.452632"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.455363"], ["updated_at", "2019-12-11 23:22:45.455363"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1456], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1709], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1709], ["room_id", 1456], ["created_at", "2019-12-11 23:22:45.460223"], ["updated_at", "2019-12-11 23:22:45.460223"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1456"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1456], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1456')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pAdDaW7MJbUsgNMFOlvKwuR7v11ilFzlCm/NVKomJI1k63BX02Mzq"], ["created_at", "2019-12-11 23:22:45.475384"], ["updated_at", "2019-12-11 23:22:45.475384"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.478540"], ["updated_at", "2019-12-11 23:22:45.478540"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1457], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1710], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1710], ["room_id", 1457], ["created_at", "2019-12-11 23:22:45.483936"], ["updated_at", "2019-12-11 23:22:45.483936"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1457"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1457], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1457')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.6ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9mBUPIfkulBWui2MYT0dIO2AQoMcwNo14LvaBGuzKZc/jC/wI5HhO"], ["created_at", "2019-12-11 23:22:45.498769"], ["updated_at", "2019-12-11 23:22:45.498769"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.501890"], ["updated_at", "2019-12-11 23:22:45.501890"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1458], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1711], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1711], ["room_id", 1458], ["created_at", "2019-12-11 23:22:45.507885"], ["updated_at", "2019-12-11 23:22:45.507885"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1458"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1458], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1458')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OZ8J2ektxpo7tX/Nx3xGj.XBUf8cxaw1hq5UiVz5drQGVHxJdzArO"], ["created_at", "2019-12-11 23:22:45.520618"], ["updated_at", "2019-12-11 23:22:45.520618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:45.523678"], ["updated_at", "2019-12-11 23:22:45.523678"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1459], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1712], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1712], ["room_id", 1459], ["created_at", "2019-12-11 23:22:45.529428"], ["updated_at", "2019-12-11 23:22:45.529428"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1459"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1459], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1459')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 111ms (Views: 78.2ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oOheJr1Yeaoe5TWKvj7Ll.yk5VyXnYXg2.kus1DW3HaUjDX7q62q6"], ["created_at", "2019-12-11 23:22:46.138591"], ["updated_at", "2019-12-11 23:22:46.138591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.140832"], ["updated_at", "2019-12-11 23:22:46.140832"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.156897"], ["last_sign_in_at", "2019-12-11 23:22:46.156897"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.157568"], ["id", 1713]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1460"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1460], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1713], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1713], ["room_id", 1460], ["created_at", "2019-12-11 23:22:46.165575"], ["updated_at", "2019-12-11 23:22:46.165575"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1460], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rFRqDmlAt181CADuGu2pBej11hcHwqJSiaPdrVqIny55NkWrcXrA6"], ["created_at", "2019-12-11 23:22:46.175558"], ["updated_at", "2019-12-11 23:22:46.175558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.177784"], ["updated_at", "2019-12-11 23:22:46.177784"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.180310"], ["last_sign_in_at", "2019-12-11 23:22:46.180310"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.180872"], ["id", 1714]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1461"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1461], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1714], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1714], ["room_id", 1461], ["created_at", "2019-12-11 23:22:46.185786"], ["updated_at", "2019-12-11 23:22:46.185786"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aJjV5rUKicWICKJ.TBRBAuXDQ0yDU5gyO96dZ42Z5V.anX0HR3Gs."], ["created_at", "2019-12-11 23:22:46.195193"], ["updated_at", "2019-12-11 23:22:46.195193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.197572"], ["updated_at", "2019-12-11 23:22:46.197572"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.200039"], ["last_sign_in_at", "2019-12-11 23:22:46.200039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.200634"], ["id", 1715]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1462"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1462], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cC/ca0cj6zkE8mVueKEP1.2ruUc7h1WSBscHIczo7I/GW.IN2mY.G"], ["created_at", "2019-12-11 23:22:46.210646"], ["updated_at", "2019-12-11 23:22:46.210646"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.212908"], ["updated_at", "2019-12-11 23:22:46.212908"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.215368"], ["last_sign_in_at", "2019-12-11 23:22:46.215368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.215899"], ["id", 1716]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1463"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.VOb/cDdfK0hCet824uahOWKGWtTJV6YYNiGGy7KPu38OHAOwLmFi"], ["created_at", "2019-12-11 23:22:46.226574"], ["updated_at", "2019-12-11 23:22:46.226574"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.229028"], ["updated_at", "2019-12-11 23:22:46.229028"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1464], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1717], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1717], ["room_id", 1464], ["created_at", "2019-12-11 23:22:46.233937"], ["updated_at", "2019-12-11 23:22:46.233937"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1464” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.236431"], ["last_sign_in_at", "2019-12-11 23:22:46.236431"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.236907"], ["id", 1717]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1464"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1464], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1464')
Rendered appointments/show.html.erb within layouts/application (21.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 359ms (Views: 340.3ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Jd2XYEjphL0auDpr2Jq59OcaPXrcXIXMknNStlP6eVXWqSOp2N3Wy"], ["created_at", "2019-12-11 23:22:46.605950"], ["updated_at", "2019-12-11 23:22:46.605950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.608033"], ["updated_at", "2019-12-11 23:22:46.608033"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1465], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1718], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1718], ["room_id", 1465], ["created_at", "2019-12-11 23:22:46.611877"], ["updated_at", "2019-12-11 23:22:46.611877"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1465], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1718], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1718], ["room_id", 1465], ["created_at", "2019-12-11 23:22:46.615563"], ["updated_at", "2019-12-11 23:22:46.615563"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.617733"], ["last_sign_in_at", "2019-12-11 23:22:46.617733"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.618299"], ["id", 1718]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1718]]
Rendered appointments/my_appointments.html.erb within layouts/application (21.8ms)

Completed 500 Internal Server Error in 54ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jMJddtJ6xHKytxDNXpb/VuxzH9tVhw8ywYQiMU0LwkOHilp50qXoC"], ["created_at", "2019-12-11 23:22:46.680439"], ["updated_at", "2019-12-11 23:22:46.680439"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.682645"], ["updated_at", "2019-12-11 23:22:46.682645"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1466], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1719], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1719], ["room_id", 1466], ["created_at", "2019-12-11 23:22:46.686557"], ["updated_at", "2019-12-11 23:22:46.686557"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1466], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1719], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1719], ["room_id", 1466], ["created_at", "2019-12-11 23:22:46.691060"], ["updated_at", "2019-12-11 23:22:46.691060"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.693537"], ["last_sign_in_at", "2019-12-11 23:22:46.693537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.694072"], ["id", 1719]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1719]]
Rendered appointments/my_appointments.html.erb within layouts/application (18.3ms)

Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1inDCYGvNa7OTPtbvd/M2OaKMCjCwxTTvIWjDcAFw7tJsgTnzj.qO"], ["created_at", "2019-12-11 23:22:46.722994"], ["updated_at", "2019-12-11 23:22:46.722994"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.725131"], ["updated_at", "2019-12-11 23:22:46.725131"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1467], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1720], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1720], ["room_id", 1467], ["created_at", "2019-12-11 23:22:46.729239"], ["updated_at", "2019-12-11 23:22:46.729239"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/798” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.731594"], ["last_sign_in_at", "2019-12-11 23:22:46.731594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.732121"], ["id", 1720]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"798"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 798], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 798]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kvdV1ojZ5yxJXFeP38GSZu1ruFf2hPJ5y6kvvl4jBjl3oRUEhHzJ."], ["created_at", "2019-12-11 23:22:46.746469"], ["updated_at", "2019-12-11 23:22:46.746469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.748936"], ["last_sign_in_at", "2019-12-11 23:22:46.748936"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.749515"], ["id", 1721]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 36ms (Views: 19.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.ZAtDUar7K/kuLL3cE.rUOzDLshAHWUVZZYjAlvXJA.66EEvtuaD6"], ["created_at", "2019-12-11 23:22:46.794564"], ["updated_at", "2019-12-11 23:22:46.794564"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.796647"], ["updated_at", "2019-12-11 23:22:46.796647"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1468], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1722], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1722], ["room_id", 1468], ["created_at", "2019-12-11 23:22:46.800366"], ["updated_at", "2019-12-11 23:22:46.800366"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1468], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1722], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1722], ["room_id", 1468], ["created_at", "2019-12-11 23:22:46.803848"], ["updated_at", "2019-12-11 23:22:46.803848"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.806506"], ["last_sign_in_at", "2019-12-11 23:22:46.806506"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.807079"], ["id", 1722]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1468], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1722], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1722], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$krTttsElcs/ykNza8cUtcebIv0IpgCGbpQQp938v/0TLoZE/sFKeq"], ["created_at", "2019-12-11 23:22:46.820497"], ["updated_at", "2019-12-11 23:22:46.820497"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.823515"], ["updated_at", "2019-12-11 23:22:46.823515"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1469], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1723], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1723], ["room_id", 1469], ["created_at", "2019-12-11 23:22:46.827963"], ["updated_at", "2019-12-11 23:22:46.827963"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1469], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1723], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1723], ["room_id", 1469], ["created_at", "2019-12-11 23:22:46.831625"], ["updated_at", "2019-12-11 23:22:46.831625"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.833655"], ["last_sign_in_at", "2019-12-11 23:22:46.833655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.834166"], ["id", 1723]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1469], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1723], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1723], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$drUq.SVrM13rNBicZruZauqpzLE8AAkOqdQpPXw5vifVZxX20niEa"], ["created_at", "2019-12-11 23:22:46.849367"], ["updated_at", "2019-12-11 23:22:46.849367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.851336"], ["updated_at", "2019-12-11 23:22:46.851336"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1470], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1724], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1724], ["room_id", 1470], ["created_at", "2019-12-11 23:22:46.855391"], ["updated_at", "2019-12-11 23:22:46.855391"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1470], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1724], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1724], ["room_id", 1470], ["created_at", "2019-12-11 23:22:46.859151"], ["updated_at", "2019-12-11 23:22:46.859151"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.861361"], ["last_sign_in_at", "2019-12-11 23:22:46.861361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.862066"], ["id", 1724]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u7I5hTv0SFgUBLi8PjeLsucjvnlPZJD0bP3RLXizYH2zj/ITMOegK"], ["created_at", "2019-12-11 23:22:46.873034"], ["updated_at", "2019-12-11 23:22:46.873034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:46.875237"], ["updated_at", "2019-12-11 23:22:46.875237"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1471], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1725], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1725], ["room_id", 1471], ["created_at", "2019-12-11 23:22:46.879084"], ["updated_at", "2019-12-11 23:22:46.879084"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1471], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1725], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1725], ["room_id", 1471], ["created_at", "2019-12-11 23:22:46.882804"], ["updated_at", "2019-12-11 23:22:46.882804"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.884954"], ["last_sign_in_at", "2019-12-11 23:22:46.884954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.885463"], ["id", 1725]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mnThXf.wQwxTEdj.mTrgyuFZDN7a1cdsAXVWUKmsXozb0vlJ0mQXO"], ["created_at", "2019-12-11 23:22:46.900273"], ["updated_at", "2019-12-11 23:22:46.900273"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.902828"], ["last_sign_in_at", "2019-12-11 23:22:46.902828"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.903342"], ["id", 1726]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 66ms (Views: 49.7ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b16kIcKRoAn3O6siuEoDoe3UadYKxwYi2h2K67RvSD4gSdvNIaWrG"], ["created_at", "2019-12-11 23:22:46.981217"], ["updated_at", "2019-12-11 23:22:46.981217"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.983645"], ["last_sign_in_at", "2019-12-11 23:22:46.983645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.984097"], ["id", 1727]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xQIuifxoMGs/i0XwlbbPHujghUtPmkX.3llqlxktj6zBojbJ1oo6m"], ["created_at", "2019-12-11 23:22:46.994086"], ["updated_at", "2019-12-11 23:22:46.994086"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:22:46 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:46.996520"], ["last_sign_in_at", "2019-12-11 23:22:46.996520"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:46.997006"], ["id", 1728]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MtIKU8fgByPFLoQA39Cb0eD0ZqW1NLyTBsa2IvsY3zSqO6TFKMy5G"], ["created_at", "2019-12-11 23:22:47.025494"], ["updated_at", "2019-12-11 23:22:47.025494"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.027656"], ["last_sign_in_at", "2019-12-11 23:22:47.027656"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.028208"], ["id", 1729]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Is.PsO6GeeT6PKT.K5/HMeHTZABN6/2vb/xlxASYWyNBb3E/GvWpa"], ["created_at", "2019-12-11 23:22:47.048493"], ["updated_at", "2019-12-11 23:22:47.048493"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.050711"], ["updated_at", "2019-12-11 23:22:47.050711"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1472” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.052732"], ["last_sign_in_at", "2019-12-11 23:22:47.052732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.053208"], ["id", 1730]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1472"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1472], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tqlRihFhdW4XLwu1dnzUv.ME3kK0kreOL27gLZVSlTxlsYyox30yy"], ["created_at", "2019-12-11 23:22:47.082332"], ["updated_at", "2019-12-11 23:22:47.082332"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.084579"], ["updated_at", "2019-12-11 23:22:47.084579"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1473” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.086918"], ["last_sign_in_at", "2019-12-11 23:22:47.086918"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.087676"], ["id", 1731]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1473"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1473], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.110783"], ["updated_at", "2019-12-11 23:22:47.110783"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1474” for 127.0.0.1 at 2019-12-11 20:22:47 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1474"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NiOJfpQv2tTr.RmyhDuAzuuxDeQ8KLNRZoWFbPDTJRwZ6L2JEw9vq"], ["created_at", "2019-12-11 23:22:47.121573"], ["updated_at", "2019-12-11 23:22:47.121573"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.123835"], ["updated_at", "2019-12-11 23:22:47.123835"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1475/edit” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.125877"], ["last_sign_in_at", "2019-12-11 23:22:47.125877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.126401"], ["id", 1732]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1475"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1475], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Syb0QmrNG/KrO9foE5JTx.cX488sG1kmL5G.WbllEnT/YI.Wf0KYu"], ["created_at", "2019-12-11 23:22:47.155627"], ["updated_at", "2019-12-11 23:22:47.155627"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.158014"], ["updated_at", "2019-12-11 23:22:47.158014"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1476/edit” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.160352"], ["last_sign_in_at", "2019-12-11 23:22:47.160352"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.160883"], ["id", 1733]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1476"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1476], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.172389"], ["updated_at", "2019-12-11 23:22:47.172389"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1477” for 127.0.0.1 at 2019-12-11 20:22:47 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1477"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$11THrNqrt.IvUg886MxKPOXYZ4zVQcfEdAWzc36n3kIdsSbZiUqMy"], ["created_at", "2019-12-11 23:22:47.183512"], ["updated_at", "2019-12-11 23:22:47.183512"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.186164"], ["last_sign_in_at", "2019-12-11 23:22:47.186164"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.186718"], ["id", 1734]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.191250"], ["updated_at", "2019-12-11 23:22:47.191250"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fjuA7CSLUzNPfDvXkYE49ucIlWQqOuTTyYCJGm3SufxGCUnnssDZG"], ["created_at", "2019-12-11 23:22:47.200123"], ["updated_at", "2019-12-11 23:22:47.200123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.202808"], ["last_sign_in_at", "2019-12-11 23:22:47.202808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.203286"], ["id", 1735]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.207087"], ["updated_at", "2019-12-11 23:22:47.207087"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$M/Rd0eUHl2YMdcxEJm8nMOvkMce6.wYHQjGoxNvACRDelvDwhciM2"], ["created_at", "2019-12-11 23:22:47.215671"], ["updated_at", "2019-12-11 23:22:47.215671"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.218482"], ["last_sign_in_at", "2019-12-11 23:22:47.218482"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.218977"], ["id", 1736]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JU3jpQ.01ktZecFwvYfqheuBuX32qpWA2Rfa0QX8Rb6KQto.tRbgO"], ["created_at", "2019-12-11 23:22:47.231583"], ["updated_at", "2019-12-11 23:22:47.231583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.234203"], ["last_sign_in_at", "2019-12-11 23:22:47.234203"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.234785"], ["id", 1737]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gWrIMpTTy6VkzDWEgqDYSOO3lmimDlXdFbKD6y/EAElvCo0lOwLzu"], ["created_at", "2019-12-11 23:22:47.247583"], ["updated_at", "2019-12-11 23:22:47.247583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.250219"], ["last_sign_in_at", "2019-12-11 23:22:47.250219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.250871"], ["id", 1738]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rAW51aqTKD6TyAeumAWwGOVJona3ybVCaawMSKs.orzde1mZ.CYmy"], ["created_at", "2019-12-11 23:22:47.261152"], ["updated_at", "2019-12-11 23:22:47.261152"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.263437"], ["updated_at", "2019-12-11 23:22:47.263437"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1480” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.265827"], ["last_sign_in_at", "2019-12-11 23:22:47.265827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.266340"], ["id", 1739]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1480"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1480], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:22:47.270303"], ["id", 1480]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1480 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b3/UUNnzBpUqh0CGwvhmzOaZ/JqVL5V9CBV/E23DRvForPmAkZmte"], ["created_at", "2019-12-11 23:22:47.278971"], ["updated_at", "2019-12-11 23:22:47.278971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.281323"], ["updated_at", "2019-12-11 23:22:47.281323"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1481” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.284700"], ["last_sign_in_at", "2019-12-11 23:22:47.284700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.285182"], ["id", 1740]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1481"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1481], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:22:47.289108"], ["id", 1481]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1481 Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PEvkwMWjj9A2wVAkkDdQpugbUVpBJCsKxpRPCsK63V0nc3nCkr3w6"], ["created_at", "2019-12-11 23:22:47.297306"], ["updated_at", "2019-12-11 23:22:47.297306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.299560"], ["updated_at", "2019-12-11 23:22:47.299560"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1482” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.301937"], ["last_sign_in_at", "2019-12-11 23:22:47.301937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.302483"], ["id", 1741]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1482"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1482], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o7FlWCIvbMej4flB4S1hYuCIPTL/Y5fnWF7AyU.UrjzmuZTEWA3cK"], ["created_at", "2019-12-11 23:22:47.317268"], ["updated_at", "2019-12-11 23:22:47.317268"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.319572"], ["updated_at", "2019-12-11 23:22:47.319572"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1483” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.322592"], ["last_sign_in_at", "2019-12-11 23:22:47.322592"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.323180"], ["id", 1742]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1483"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1483], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ig9bppfxQSe5CUmXahs2pe9H10aVyz/qyrlzn3RaoYOii.ZX8831K"], ["created_at", "2019-12-11 23:22:47.338644"], ["updated_at", "2019-12-11 23:22:47.338644"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.341590"], ["last_sign_in_at", "2019-12-11 23:22:47.341590"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.342156"], ["id", 1743]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sjYNVUgJx2Jp98t5ftRDWuXrC8BI9suyPzOuSFizYXhJ0mzp79Mhe"], ["created_at", "2019-12-11 23:22:47.352157"], ["updated_at", "2019-12-11 23:22:47.352157"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.354711"], ["updated_at", "2019-12-11 23:22:47.354711"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1484” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.357071"], ["last_sign_in_at", "2019-12-11 23:22:47.357071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.357620"], ["id", 1744]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1484"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1484], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1484]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YZcLnI7lb7fyHt4nszhFye8YX1.JyAN6mmxtA6PkhJu6cuMMdA1x."], ["created_at", "2019-12-11 23:22:47.369220"], ["updated_at", "2019-12-11 23:22:47.369220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.371942"], ["updated_at", "2019-12-11 23:22:47.371942"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1485” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.374278"], ["last_sign_in_at", "2019-12-11 23:22:47.374278"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.374824"], ["id", 1745]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1485"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1485], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1485]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NfCWHU9lYgpdE2avpNG5qOnqW3dRjahjgHI1LL0Il5ypz.M1p.daG"], ["created_at", "2019-12-11 23:22:47.387065"], ["updated_at", "2019-12-11 23:22:47.387065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.390106"], ["updated_at", "2019-12-11 23:22:47.390106"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1486” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.392425"], ["last_sign_in_at", "2019-12-11 23:22:47.392425"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.392975"], ["id", 1746]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1486"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YAoDaHAgqqBh2sxvhqppbOFFNMTpDSyMO5FnCGOY68nMD7of6f/8O"], ["created_at", "2019-12-11 23:22:47.403363"], ["updated_at", "2019-12-11 23:22:47.403363"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:22:47.406467"], ["updated_at", "2019-12-11 23:22:47.406467"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1487” for 127.0.0.1 at 2019-12-11 20:22:47 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:22:47.408590"], ["last_sign_in_at", "2019-12-11 23:22:47.408590"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:22:47.409302"], ["id", 1747]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1487"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (1.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lCJv0RFUqeqIGGKIbkI4jufsxPr895XZM.SQK7Cg.eJFu6NFn.PLy"], ["created_at", "2019-12-11 23:24:49.562755"], ["updated_at", "2019-12-11 23:24:49.562755"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.571566"], ["updated_at", "2019-12-11 23:24:49.571566"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sT1AnQiiRRvd/zNn7WM4deefy8b0CVxGDEqqt3Dog6fzF94ddQ9sC"], ["created_at", "2019-12-11 23:24:49.581006"], ["updated_at", "2019-12-11 23:24:49.581006"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.583420"], ["updated_at", "2019-12-11 23:24:49.583420"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1489], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1749], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1749], ["room_id", 1489], ["created_at", "2019-12-11 23:24:49.632149"], ["updated_at", "2019-12-11 23:24:49.632149"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yGH1GNxJSw/YG/Pq8L478O1iBRPjmLur87KXgMjvYgyJqfNH24Eo."], ["created_at", "2019-12-11 23:24:49.676396"], ["updated_at", "2019-12-11 23:24:49.676396"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.678861"], ["updated_at", "2019-12-11 23:24:49.678861"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1490], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1750], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1750], ["room_id", 1490], ["created_at", "2019-12-11 23:24:49.683126"], ["updated_at", "2019-12-11 23:24:49.683126"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$odMWWopYDbe0lp1Dsx5XaOLRqwR30sBKv8mKCaO2OZEfM4ik3wUd2"], ["created_at", "2019-12-11 23:24:49.691775"], ["updated_at", "2019-12-11 23:24:49.691775"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.694803"], ["updated_at", "2019-12-11 23:24:49.694803"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1491], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1751], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1751], ["room_id", 1491], ["created_at", "2019-12-11 23:24:49.699140"], ["updated_at", "2019-12-11 23:24:49.699140"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GdimYayNxefy90iqxvzTquQ69I9HhKzesRtVChK2uu0y8ti3FWifS"], ["created_at", "2019-12-11 23:24:49.710069"], ["updated_at", "2019-12-11 23:24:49.710069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.713049"], ["updated_at", "2019-12-11 23:24:49.713049"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1492"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1492], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1492')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 151ms (Views: 116.0ms | ActiveRecord: 1.0ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ye11Ya.Qi6a8d62fNs2H8e5TKui5OMBS0bfpdFR4qxDTSF.lUOMPW"], ["created_at", "2019-12-11 23:24:49.874327"], ["updated_at", "2019-12-11 23:24:49.874327"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.877070"], ["updated_at", "2019-12-11 23:24:49.877070"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1493], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1753], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1753], ["room_id", 1493], ["created_at", "2019-12-11 23:24:49.881671"], ["updated_at", "2019-12-11 23:24:49.881671"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1493"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1493], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1493')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.9ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$f.jXFTaXVD2DGt0IYkS6re9LT0uUwuDMLUllaDNpmTcGfLOtkxeKe"], ["created_at", "2019-12-11 23:24:49.898270"], ["updated_at", "2019-12-11 23:24:49.898270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.900564"], ["updated_at", "2019-12-11 23:24:49.900564"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1494], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1754], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1754], ["room_id", 1494], ["created_at", "2019-12-11 23:24:49.905024"], ["updated_at", "2019-12-11 23:24:49.905024"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1494"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1494], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1494')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vw7OWnnFglL1D5/U3w2/hOZmYVhAUYCckygQezCeCtHvEiOEiO7LC"], ["created_at", "2019-12-11 23:24:49.917274"], ["updated_at", "2019-12-11 23:24:49.917274"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.919787"], ["updated_at", "2019-12-11 23:24:49.919787"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1495], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1755], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1755], ["room_id", 1495], ["created_at", "2019-12-11 23:24:49.924034"], ["updated_at", "2019-12-11 23:24:49.924034"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1495"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1495], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1495')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fa5pYwTBHDzdNm2yncxdOeu3ECma.lxMMBV3HS1f9x5m0jmgbt9Sm"], ["created_at", "2019-12-11 23:24:49.935045"], ["updated_at", "2019-12-11 23:24:49.935045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:49.937265"], ["updated_at", "2019-12-11 23:24:49.937265"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1496], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1756], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1756], ["room_id", 1496], ["created_at", "2019-12-11 23:24:49.941101"], ["updated_at", "2019-12-11 23:24:49.941101"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1496"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1496], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1496')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 112ms (Views: 76.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$G7FjBlcaOpu8E2KGFBIr3.IdomoV8WexzVsv.I/DaHawWPww13EiC"], ["created_at", "2019-12-11 23:24:50.551836"], ["updated_at", "2019-12-11 23:24:50.551836"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:50.554160"], ["updated_at", "2019-12-11 23:24:50.554160"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:24:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:50.570798"], ["last_sign_in_at", "2019-12-11 23:24:50.570798"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:50.571480"], ["id", 1757]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1497"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1497], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1757], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1757], ["room_id", 1497], ["created_at", "2019-12-11 23:24:50.580066"], ["updated_at", "2019-12-11 23:24:50.580066"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1497], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9wTr0uL90wuzJ4s8xn9fnemAir5E64xOneUmm6rh44F4audNI2Mvi"], ["created_at", "2019-12-11 23:24:50.594051"], ["updated_at", "2019-12-11 23:24:50.594051"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:50.596611"], ["updated_at", "2019-12-11 23:24:50.596611"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:24:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:50.599227"], ["last_sign_in_at", "2019-12-11 23:24:50.599227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:50.599795"], ["id", 1758]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1498"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1498], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1758], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1758], ["room_id", 1498], ["created_at", "2019-12-11 23:24:50.604746"], ["updated_at", "2019-12-11 23:24:50.604746"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TW2gGg6nE6O0xiLpQHhEBevwpyYBg.vgw6oUsI8vjUhYvUO1kSqRG"], ["created_at", "2019-12-11 23:24:50.613825"], ["updated_at", "2019-12-11 23:24:50.613825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:50.616112"], ["updated_at", "2019-12-11 23:24:50.616112"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:24:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:50.618877"], ["last_sign_in_at", "2019-12-11 23:24:50.618877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:50.619423"], ["id", 1759]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1499"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1499], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mO7mhPbLDFMLLXO88FTcN.adoMtiCQxxUbWomOUjtGYkuJLFg8pWK"], ["created_at", "2019-12-11 23:24:50.629467"], ["updated_at", "2019-12-11 23:24:50.629467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:50.631862"], ["updated_at", "2019-12-11 23:24:50.631862"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:24:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:50.634218"], ["last_sign_in_at", "2019-12-11 23:24:50.634218"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:50.634781"], ["id", 1760]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1500"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nqUE7I5F34Pkn.LZpHMbp.GuPejArXlMVA7swIqIJ7FM7IqrR4JAa"], ["created_at", "2019-12-11 23:24:50.645432"], ["updated_at", "2019-12-11 23:24:50.645432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:50.647745"], ["updated_at", "2019-12-11 23:24:50.647745"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1501], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1761], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1761], ["room_id", 1501], ["created_at", "2019-12-11 23:24:50.651625"], ["updated_at", "2019-12-11 23:24:50.651625"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1501” for 127.0.0.1 at 2019-12-11 20:24:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:50.654009"], ["last_sign_in_at", "2019-12-11 23:24:50.654009"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:50.654546"], ["id", 1761]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1501"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1501], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1501')
Rendered appointments/show.html.erb within layouts/application (31.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 383ms (Views: 364.3ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qIXm5RiJwMIWUU7mQILI9.kMsjzUFHTdBDFArxquQK8GzrqikNM2y"], ["created_at", "2019-12-11 23:24:51.046822"], ["updated_at", "2019-12-11 23:24:51.046822"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.048967"], ["updated_at", "2019-12-11 23:24:51.048967"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1502], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1762], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1762], ["room_id", 1502], ["created_at", "2019-12-11 23:24:51.052869"], ["updated_at", "2019-12-11 23:24:51.052869"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1502], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1762], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1762], ["room_id", 1502], ["created_at", "2019-12-11 23:24:51.056759"], ["updated_at", "2019-12-11 23:24:51.056759"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.059262"], ["last_sign_in_at", "2019-12-11 23:24:51.059262"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.059865"], ["id", 1762]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1762]]
Rendered appointments/my_appointments.html.erb within layouts/application (21.5ms)

Completed 500 Internal Server Error in 54ms (ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Nt01weUjBWLmnznW1KDsce0RkKHdOo4cIlOUaWQw.LMQyBSg94.hS"], ["created_at", "2019-12-11 23:24:51.122502"], ["updated_at", "2019-12-11 23:24:51.122502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.124925"], ["updated_at", "2019-12-11 23:24:51.124925"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1503], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1763], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1763], ["room_id", 1503], ["created_at", "2019-12-11 23:24:51.129106"], ["updated_at", "2019-12-11 23:24:51.129106"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1503], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1763], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1763], ["room_id", 1503], ["created_at", "2019-12-11 23:24:51.133016"], ["updated_at", "2019-12-11 23:24:51.133016"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.135409"], ["last_sign_in_at", "2019-12-11 23:24:51.135409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.136013"], ["id", 1763]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1763]]
Rendered appointments/my_appointments.html.erb within layouts/application (17.6ms)

Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IOmgNnbmvKown6dwrRgmTOkrLmJRrB2k/PtlQPn7W1roKkOIFsz2O"], ["created_at", "2019-12-11 23:24:51.164529"], ["updated_at", "2019-12-11 23:24:51.164529"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.166886"], ["updated_at", "2019-12-11 23:24:51.166886"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1504], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1764], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1764], ["room_id", 1504], ["created_at", "2019-12-11 23:24:51.171417"], ["updated_at", "2019-12-11 23:24:51.171417"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/821” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.173661"], ["last_sign_in_at", "2019-12-11 23:24:51.173661"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.174166"], ["id", 1764]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"821"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 821], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 821]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VU9HiXjnC3QsB9AvPlbytOLPstZCCu158UWeLCWYkLTWIrYEB4xeC"], ["created_at", "2019-12-11 23:24:51.189713"], ["updated_at", "2019-12-11 23:24:51.189713"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.192325"], ["last_sign_in_at", "2019-12-11 23:24:51.192325"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.193074"], ["id", 1765]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 36ms (Views: 19.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KSJoy932c3Hqyz43WXEuIOZU00ELNf.wHAaNdYYy5iag1bwjstPMC"], ["created_at", "2019-12-11 23:24:51.238250"], ["updated_at", "2019-12-11 23:24:51.238250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.240821"], ["updated_at", "2019-12-11 23:24:51.240821"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1505], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1766], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1766], ["room_id", 1505], ["created_at", "2019-12-11 23:24:51.245683"], ["updated_at", "2019-12-11 23:24:51.245683"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1505], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1766], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1766], ["room_id", 1505], ["created_at", "2019-12-11 23:24:51.250976"], ["updated_at", "2019-12-11 23:24:51.250976"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.255201"], ["last_sign_in_at", "2019-12-11 23:24:51.255201"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.255833"], ["id", 1766]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1505], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1766], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1766], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VJRLobhLDNSpyosLJuxz2.G18Zknwlme9MH6ndHxJC9hGllmVXbMm"], ["created_at", "2019-12-11 23:24:51.276802"], ["updated_at", "2019-12-11 23:24:51.276802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.279850"], ["updated_at", "2019-12-11 23:24:51.279850"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1506], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1767], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1767], ["room_id", 1506], ["created_at", "2019-12-11 23:24:51.285405"], ["updated_at", "2019-12-11 23:24:51.285405"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1506], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1767], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1767], ["room_id", 1506], ["created_at", "2019-12-11 23:24:51.290320"], ["updated_at", "2019-12-11 23:24:51.290320"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.6ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.293727"], ["last_sign_in_at", "2019-12-11 23:24:51.293727"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.294651"], ["id", 1767]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1506], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1767], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1767], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8wk6E82itdPFg6oNnsa3G.ekx5wNXua71luDq6es1nAxh7I1jNBuC"], ["created_at", "2019-12-11 23:24:51.314327"], ["updated_at", "2019-12-11 23:24:51.314327"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.317177"], ["updated_at", "2019-12-11 23:24:51.317177"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1507], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1768], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1768], ["room_id", 1507], ["created_at", "2019-12-11 23:24:51.321965"], ["updated_at", "2019-12-11 23:24:51.321965"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1507], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1768], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1768], ["room_id", 1507], ["created_at", "2019-12-11 23:24:51.327409"], ["updated_at", "2019-12-11 23:24:51.327409"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.330476"], ["last_sign_in_at", "2019-12-11 23:24:51.330476"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.331053"], ["id", 1768]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rb89U8IrnhuTqve31Jfihe.RG3YckJ.3p98btt6yBfOqOHfcBLlt6"], ["created_at", "2019-12-11 23:24:51.345282"], ["updated_at", "2019-12-11 23:24:51.345282"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.347913"], ["updated_at", "2019-12-11 23:24:51.347913"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1508], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1769], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1769], ["room_id", 1508], ["created_at", "2019-12-11 23:24:51.352645"], ["updated_at", "2019-12-11 23:24:51.352645"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1508], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1769], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1769], ["room_id", 1508], ["created_at", "2019-12-11 23:24:51.358833"], ["updated_at", "2019-12-11 23:24:51.358833"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.362541"], ["last_sign_in_at", "2019-12-11 23:24:51.362541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.363080"], ["id", 1769]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.5ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$piIbLxG.5p8QYPJHl2XSWev6EX5Lo7jphki.VPfW8nsSPt8a1.twO"], ["created_at", "2019-12-11 23:24:51.379404"], ["updated_at", "2019-12-11 23:24:51.379404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.382578"], ["last_sign_in_at", "2019-12-11 23:24:51.382578"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.383129"], ["id", 1770]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (11.8ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 71ms (Views: 53.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zdgIdfCUVHvkvqOlE3A38O4wAxea2qkUd2u7kfBvco4BHMg.42xWm"], ["created_at", "2019-12-11 23:24:51.469481"], ["updated_at", "2019-12-11 23:24:51.469481"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.472989"], ["last_sign_in_at", "2019-12-11 23:24:51.472989"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.473598"], ["id", 1771]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/yjrZV5GvPpBgRTLwinKTuPAN3vau4NvZ/eu98j033l42gP3pWz7."], ["created_at", "2019-12-11 23:24:51.484868"], ["updated_at", "2019-12-11 23:24:51.484868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.487782"], ["last_sign_in_at", "2019-12-11 23:24:51.487782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.488368"], ["id", 1772]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 28ms (Views: 11.0ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DYdcGuU.X.LOWFHwvhW28eQxPJCKGbUt/Hk3v062lioRsKdBEPKA6"], ["created_at", "2019-12-11 23:24:51.524404"], ["updated_at", "2019-12-11 23:24:51.524404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.526941"], ["last_sign_in_at", "2019-12-11 23:24:51.526941"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.527451"], ["id", 1773]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ALrfS2/Rlk8OjkmzThuYhu03CWTVoOxirltFCNKvnnofRuAFdAg8W"], ["created_at", "2019-12-11 23:24:51.547168"], ["updated_at", "2019-12-11 23:24:51.547168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.549523"], ["updated_at", "2019-12-11 23:24:51.549523"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1509” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.551600"], ["last_sign_in_at", "2019-12-11 23:24:51.551600"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.552107"], ["id", 1774]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1509"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1509], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UV3.ou8w7WSjjC594g41du7LNOGPBTswdCnGCG0PVt0BASSeU.0Uy"], ["created_at", "2019-12-11 23:24:51.579132"], ["updated_at", "2019-12-11 23:24:51.579132"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.581093"], ["updated_at", "2019-12-11 23:24:51.581093"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1510” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.582961"], ["last_sign_in_at", "2019-12-11 23:24:51.582961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.583463"], ["id", 1775]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1510"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1510], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.592648"], ["updated_at", "2019-12-11 23:24:51.592648"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1511” for 127.0.0.1 at 2019-12-11 20:24:51 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1511"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2kSuolqFg3nZwQCReQt9gumQJjwcLeIxBH4qPCiggBxBNXhiY93/y"], ["created_at", "2019-12-11 23:24:51.602438"], ["updated_at", "2019-12-11 23:24:51.602438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.604549"], ["updated_at", "2019-12-11 23:24:51.604549"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1512/edit” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.606499"], ["last_sign_in_at", "2019-12-11 23:24:51.606499"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.606975"], ["id", 1776]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1512"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1512], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W7vFeoQleacLndn1bvo66OqDlU9IoLLw1WF8wWl5HOb8UkL3alP0C"], ["created_at", "2019-12-11 23:24:51.635517"], ["updated_at", "2019-12-11 23:24:51.635517"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.637624"], ["updated_at", "2019-12-11 23:24:51.637624"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1513/edit” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.639614"], ["last_sign_in_at", "2019-12-11 23:24:51.639614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.640097"], ["id", 1777]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1513"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1513], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.650574"], ["updated_at", "2019-12-11 23:24:51.650574"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1514” for 127.0.0.1 at 2019-12-11 20:24:51 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1514"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lyCRCxnLQQkWONHrhAN9t.0VHcY2Zr1kwv7r8i9o86oKSr6dqCLk6"], ["created_at", "2019-12-11 23:24:51.660873"], ["updated_at", "2019-12-11 23:24:51.660873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.663361"], ["last_sign_in_at", "2019-12-11 23:24:51.663361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.663844"], ["id", 1778]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.667058"], ["updated_at", "2019-12-11 23:24:51.667058"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PI1kON0d8creukDCgTg3dejV6FPoIKE.RUtL6T06z.VQCHBOtB2Oq"], ["created_at", "2019-12-11 23:24:51.674748"], ["updated_at", "2019-12-11 23:24:51.674748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.677879"], ["last_sign_in_at", "2019-12-11 23:24:51.677879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.678400"], ["id", 1779]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.681971"], ["updated_at", "2019-12-11 23:24:51.681971"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hwZ9haQ.4oNkaDM16MVFDeYW0pd4ZnBU6dtAMDcso7Z4JRIAU2mUO"], ["created_at", "2019-12-11 23:24:51.689851"], ["updated_at", "2019-12-11 23:24:51.689851"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.692768"], ["last_sign_in_at", "2019-12-11 23:24:51.692768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.693318"], ["id", 1780]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$08julISbCUxckz3k44NKRejfdBwaedfgmoUW7FzzTjwlcxQ7aH3oO"], ["created_at", "2019-12-11 23:24:51.703044"], ["updated_at", "2019-12-11 23:24:51.703044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.705520"], ["last_sign_in_at", "2019-12-11 23:24:51.705520"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.706055"], ["id", 1781]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6LutFEIzONvpMxCxtxXMzu9OrseKPq10yXbHKcurSj5vEK5PRIwFu"], ["created_at", "2019-12-11 23:24:51.717059"], ["updated_at", "2019-12-11 23:24:51.717059"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.719664"], ["last_sign_in_at", "2019-12-11 23:24:51.719664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.720315"], ["id", 1782]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RSU1bWr2mltKTeqSm5W1mOJUwTzZITDufG2FSllmz9TGF4cIGxewC"], ["created_at", "2019-12-11 23:24:51.731121"], ["updated_at", "2019-12-11 23:24:51.731121"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.733173"], ["updated_at", "2019-12-11 23:24:51.733173"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1517” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.735404"], ["last_sign_in_at", "2019-12-11 23:24:51.735404"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.735917"], ["id", 1783]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1517"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1517], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:24:51.739704"], ["id", 1517]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1517 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NsNFM6.daViq4QKNKe2dme8Kn5aTAjDsPiAyS5gGEw/scN1t1.C/S"], ["created_at", "2019-12-11 23:24:51.747815"], ["updated_at", "2019-12-11 23:24:51.747815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.750067"], ["updated_at", "2019-12-11 23:24:51.750067"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1518” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.752313"], ["last_sign_in_at", "2019-12-11 23:24:51.752313"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.752810"], ["id", 1784]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1518"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1518], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:24:51.756567"], ["id", 1518]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1518 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/IsZWQeddZs4En9eMsEbUOV8nlbQgj77JvaNoppu5sVhICo.A4z5K"], ["created_at", "2019-12-11 23:24:51.765017"], ["updated_at", "2019-12-11 23:24:51.765017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.767083"], ["updated_at", "2019-12-11 23:24:51.767083"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1519” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.769301"], ["last_sign_in_at", "2019-12-11 23:24:51.769301"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.769791"], ["id", 1785]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1519"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1519], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DorSyJOtXxLCYlylk86XROPcbKs4M3kKOCVrJA1ZLoBfodKTefhfC"], ["created_at", "2019-12-11 23:24:51.783427"], ["updated_at", "2019-12-11 23:24:51.783427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.785464"], ["updated_at", "2019-12-11 23:24:51.785464"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1520” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.787594"], ["last_sign_in_at", "2019-12-11 23:24:51.787594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.788121"], ["id", 1786]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1520"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1520], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/LgtChgpYjOBdnaAKf7P0.ZEigJu7dAcI.Xb2jmnzf1mliJ2M0No."], ["created_at", "2019-12-11 23:24:51.802896"], ["updated_at", "2019-12-11 23:24:51.802896"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.805403"], ["last_sign_in_at", "2019-12-11 23:24:51.805403"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.805919"], ["id", 1787]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pYUGAfPBOPRHPHiDXyMqo.V2NN7FTeZejQ2f7TpY2AtOfGub7Irr6"], ["created_at", "2019-12-11 23:24:51.815623"], ["updated_at", "2019-12-11 23:24:51.815623"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.818193"], ["updated_at", "2019-12-11 23:24:51.818193"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1521” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.820029"], ["last_sign_in_at", "2019-12-11 23:24:51.820029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.820516"], ["id", 1788]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1521"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1521], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1521]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bfAtkiurOVHUf.3.ABKzy.GCocDcT6zRonTGyYj8viQeQaN7nQ8X6"], ["created_at", "2019-12-11 23:24:51.834700"], ["updated_at", "2019-12-11 23:24:51.834700"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.836772"], ["updated_at", "2019-12-11 23:24:51.836772"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1522” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.838448"], ["last_sign_in_at", "2019-12-11 23:24:51.838448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.838981"], ["id", 1789]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1522"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1522], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1522]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Crm2mx7xmexNmUJNb.NAY.adTvwDPnUzDTe3zRs33B61rpFZlEkZ6"], ["created_at", "2019-12-11 23:24:51.849860"], ["updated_at", "2019-12-11 23:24:51.849860"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.851990"], ["updated_at", "2019-12-11 23:24:51.851990"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1523” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.853689"], ["last_sign_in_at", "2019-12-11 23:24:51.853689"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.854138"], ["id", 1790]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1523"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9Y.fc7AdzCBITlVs7V1FRe.EL1y9bZYHpb/01T2aOsU5yYekZ5Q0a"], ["created_at", "2019-12-11 23:24:51.863070"], ["updated_at", "2019-12-11 23:24:51.863070"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:24:51.865199"], ["updated_at", "2019-12-11 23:24:51.865199"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1524” for 127.0.0.1 at 2019-12-11 20:24:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:24:51.867024"], ["last_sign_in_at", "2019-12-11 23:24:51.867024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:24:51.867496"], ["id", 1791]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1524"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xVU3f3fXd7InN10EpASYLOiRLgm2cjOfdbt3jnxIYqEBWtUlxTTLC"], ["created_at", "2019-12-11 23:26:08.912927"], ["updated_at", "2019-12-11 23:26:08.912927"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:08.922040"], ["updated_at", "2019-12-11 23:26:08.922040"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1792], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 173ms (Views: 116.5ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iTyY/s7eKugFIIHYiCao/u9cvJmUoXf6MrVsUAM9d6fH5/dJZ35OO"], ["created_at", "2019-12-11 23:26:09.106660"], ["updated_at", "2019-12-11 23:26:09.106660"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.109225"], ["updated_at", "2019-12-11 23:26:09.109225"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1526], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1793], ["LIMIT", 1]]
SQL (1.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1793], ["room_id", 1526], ["created_at", "2019-12-11 23:26:09.148318"], ["updated_at", "2019-12-11 23:26:09.148318"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kn8jUc00fJV5yKafPAodWeLHnwgth8MOjlWlMbynQTtTeoM9/ow66"], ["created_at", "2019-12-11 23:26:09.191682"], ["updated_at", "2019-12-11 23:26:09.191682"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.193865"], ["updated_at", "2019-12-11 23:26:09.193865"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1527], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1794], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1794], ["room_id", 1527], ["created_at", "2019-12-11 23:26:09.199150"], ["updated_at", "2019-12-11 23:26:09.199150"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5jqZGRITJVBjFNAR5YOjvOSYzYX4SorNi4xkWt/IMN4GWn3AYHWM2"], ["created_at", "2019-12-11 23:26:09.207413"], ["updated_at", "2019-12-11 23:26:09.207413"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.209659"], ["updated_at", "2019-12-11 23:26:09.209659"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1528], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1795], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1795], ["room_id", 1528], ["created_at", "2019-12-11 23:26:09.213986"], ["updated_at", "2019-12-11 23:26:09.213986"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sQmgH9gn88SjKjjOit4tcOkWma2PquLovjXyv6IeeozgOyMjSZ7f2"], ["created_at", "2019-12-11 23:26:09.223683"], ["updated_at", "2019-12-11 23:26:09.223683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.226079"], ["updated_at", "2019-12-11 23:26:09.226079"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1529"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1529], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1529')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)

Completed 200 OK in 110ms (Views: 76.0ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$f4jVUfu9hUPmxQvJ1FXI1OBIpMIGxs/VbiWfLQaGFEIEgATuvnAEq"], ["created_at", "2019-12-11 23:26:09.346031"], ["updated_at", "2019-12-11 23:26:09.346031"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.348355"], ["updated_at", "2019-12-11 23:26:09.348355"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1530], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1797], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1797], ["room_id", 1530], ["created_at", "2019-12-11 23:26:09.352520"], ["updated_at", "2019-12-11 23:26:09.352520"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1530"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1530], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1530')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.j6OqxU5PRJgUVpMcfDvYOLBmaOaIRlyBXwOxZ7NJgjHvMgAE9meK"], ["created_at", "2019-12-11 23:26:09.366401"], ["updated_at", "2019-12-11 23:26:09.366401"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.368680"], ["updated_at", "2019-12-11 23:26:09.368680"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1531], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1798], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1798], ["room_id", 1531], ["created_at", "2019-12-11 23:26:09.372757"], ["updated_at", "2019-12-11 23:26:09.372757"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1531"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1531], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1531')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)

Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$V282E.wjQ9BBEq1LBD/o8.Cum8vb/ehJ5Gn1jCHZK/5.IRVKQBpPa"], ["created_at", "2019-12-11 23:26:09.384787"], ["updated_at", "2019-12-11 23:26:09.384787"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.387210"], ["updated_at", "2019-12-11 23:26:09.387210"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1532], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1799], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1799], ["room_id", 1532], ["created_at", "2019-12-11 23:26:09.391272"], ["updated_at", "2019-12-11 23:26:09.391272"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1532"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1532], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1532')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YkBlpYGpCvgnyzt6E.BxTO42AfhAr.8mTF87Uu2x6LqjbURYQjb0a"], ["created_at", "2019-12-11 23:26:09.401508"], ["updated_at", "2019-12-11 23:26:09.401508"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.403866"], ["updated_at", "2019-12-11 23:26:09.403866"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1533], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1800], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1800], ["room_id", 1533], ["created_at", "2019-12-11 23:26:09.407701"], ["updated_at", "2019-12-11 23:26:09.407701"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1533"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1533], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1533')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 110ms (Views: 78.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sgnhUa6Rvi/trVuBe9PKI.vEfalqbO6YMTfTure4ToqUlBsJBs1ne"], ["created_at", "2019-12-11 23:26:09.987949"], ["updated_at", "2019-12-11 23:26:09.987949"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:09.990255"], ["updated_at", "2019-12-11 23:26:09.990255"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.006864"], ["last_sign_in_at", "2019-12-11 23:26:10.006864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.007589"], ["id", 1801]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1534"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1534], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1801], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1801], ["room_id", 1534], ["created_at", "2019-12-11 23:26:10.019950"], ["updated_at", "2019-12-11 23:26:10.019950"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1534], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qmyHNCWa7foQhppHpTxIduTBW3K8KccIsXie00qmWExWoq4BsXiyW"], ["created_at", "2019-12-11 23:26:10.029786"], ["updated_at", "2019-12-11 23:26:10.029786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.031997"], ["updated_at", "2019-12-11 23:26:10.031997"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.034559"], ["last_sign_in_at", "2019-12-11 23:26:10.034559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.035092"], ["id", 1802]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1535"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1535], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1802], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1802], ["room_id", 1535], ["created_at", "2019-12-11 23:26:10.040268"], ["updated_at", "2019-12-11 23:26:10.040268"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MrIe.sLlR.dOvj7pCB1UmeSlrjuGQgq5trl7d0je9yNrHxgNtRJ6m"], ["created_at", "2019-12-11 23:26:10.049367"], ["updated_at", "2019-12-11 23:26:10.049367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.051695"], ["updated_at", "2019-12-11 23:26:10.051695"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.054140"], ["last_sign_in_at", "2019-12-11 23:26:10.054140"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.054719"], ["id", 1803]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1536"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1536], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/3Jy6YZSSQDE.xuFkuQTMed5.CEtaUz.1FqiusUVgU8G0XyGSp9Kq"], ["created_at", "2019-12-11 23:26:10.064397"], ["updated_at", "2019-12-11 23:26:10.064397"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.066576"], ["updated_at", "2019-12-11 23:26:10.066576"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.068905"], ["last_sign_in_at", "2019-12-11 23:26:10.068905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.069392"], ["id", 1804]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1537"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RVo0xQYcHH2d1TVntTY6bu19UE1OnZSzOtYK42nJZq6McUg0mfuJi"], ["created_at", "2019-12-11 23:26:10.080513"], ["updated_at", "2019-12-11 23:26:10.080513"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.082892"], ["updated_at", "2019-12-11 23:26:10.082892"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1538], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1805], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1805], ["room_id", 1538], ["created_at", "2019-12-11 23:26:10.086753"], ["updated_at", "2019-12-11 23:26:10.086753"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1538” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.089147"], ["last_sign_in_at", "2019-12-11 23:26:10.089147"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.089780"], ["id", 1805]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1538"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1538], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1538')
Rendered appointments/show.html.erb within layouts/application (21.9ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 400ms (Views: 382.3ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9mTxs4QOl/BPLDpLnlPW..en2hZbLU4P0jQ7EimK1ftwhmn26yWjm"], ["created_at", "2019-12-11 23:26:10.500859"], ["updated_at", "2019-12-11 23:26:10.500859"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.503065"], ["updated_at", "2019-12-11 23:26:10.503065"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1539], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1806], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1806], ["room_id", 1539], ["created_at", "2019-12-11 23:26:10.507378"], ["updated_at", "2019-12-11 23:26:10.507378"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1539], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1806], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1806], ["room_id", 1539], ["created_at", "2019-12-11 23:26:10.511823"], ["updated_at", "2019-12-11 23:26:10.511823"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.514583"], ["last_sign_in_at", "2019-12-11 23:26:10.514583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.515120"], ["id", 1806]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1806]]
Rendered appointments/my_appointments.html.erb within layouts/application (20.8ms)

Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JlsWAzxAZndh46HjN2yrlu8FJp3c58luLWlGNZYeXNYY95WjxlvEO"], ["created_at", "2019-12-11 23:26:10.561757"], ["updated_at", "2019-12-11 23:26:10.561757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.564006"], ["updated_at", "2019-12-11 23:26:10.564006"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1540], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1807], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1807], ["room_id", 1540], ["created_at", "2019-12-11 23:26:10.568079"], ["updated_at", "2019-12-11 23:26:10.568079"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1540], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1807], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1807], ["room_id", 1540], ["created_at", "2019-12-11 23:26:10.571998"], ["updated_at", "2019-12-11 23:26:10.571998"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.574461"], ["last_sign_in_at", "2019-12-11 23:26:10.574461"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.574970"], ["id", 1807]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1807]]
Rendered appointments/my_appointments.html.erb within layouts/application (18.4ms)

Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3merd9T/VJeCiADPps8z3uklksZFEo.7SLvW5EkoulasRq/viAK/O"], ["created_at", "2019-12-11 23:26:10.603558"], ["updated_at", "2019-12-11 23:26:10.603558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.605753"], ["updated_at", "2019-12-11 23:26:10.605753"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1541], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1808], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1808], ["room_id", 1541], ["created_at", "2019-12-11 23:26:10.609601"], ["updated_at", "2019-12-11 23:26:10.609601"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/844” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.612465"], ["last_sign_in_at", "2019-12-11 23:26:10.612465"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.613005"], ["id", 1808]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"844"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 844], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 844]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SqjRlzKqnsehvlvrEDMMTeT20VIF1VyNFcVyBVxFOSGkU9e/9.DVO"], ["created_at", "2019-12-11 23:26:10.627174"], ["updated_at", "2019-12-11 23:26:10.627174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.629812"], ["last_sign_in_at", "2019-12-11 23:26:10.629812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.630391"], ["id", 1809]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 36ms (Views: 19.1ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Svy.lFbZFXAh9cwtSXfCKOby7789rJ0rR0gjgyUvAEAbikpdtTENS"], ["created_at", "2019-12-11 23:26:10.675910"], ["updated_at", "2019-12-11 23:26:10.675910"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.678419"], ["updated_at", "2019-12-11 23:26:10.678419"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1542], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1810], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1810], ["room_id", 1542], ["created_at", "2019-12-11 23:26:10.682307"], ["updated_at", "2019-12-11 23:26:10.682307"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1542], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1810], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1810], ["room_id", 1542], ["created_at", "2019-12-11 23:26:10.686200"], ["updated_at", "2019-12-11 23:26:10.686200"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.688597"], ["last_sign_in_at", "2019-12-11 23:26:10.688597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.689236"], ["id", 1810]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1542], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1810], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1810], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xPFmdZL8cKDt29EWgHW/GOr6xCadzlHFnOcqX23Q5CU.HX340L356"], ["created_at", "2019-12-11 23:26:10.703081"], ["updated_at", "2019-12-11 23:26:10.703081"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.705341"], ["updated_at", "2019-12-11 23:26:10.705341"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1543], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1811], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1811], ["room_id", 1543], ["created_at", "2019-12-11 23:26:10.709519"], ["updated_at", "2019-12-11 23:26:10.709519"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1543], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1811], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1811], ["room_id", 1543], ["created_at", "2019-12-11 23:26:10.714116"], ["updated_at", "2019-12-11 23:26:10.714116"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.716803"], ["last_sign_in_at", "2019-12-11 23:26:10.716803"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.717513"], ["id", 1811]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1543], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1811], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1811], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZAruNy0X9j2R31k3T.A/T.h.o8q..QwGl30SeSIbdspSINSqOkO4C"], ["created_at", "2019-12-11 23:26:10.733172"], ["updated_at", "2019-12-11 23:26:10.733172"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.735405"], ["updated_at", "2019-12-11 23:26:10.735405"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1544], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1812], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1812], ["room_id", 1544], ["created_at", "2019-12-11 23:26:10.739301"], ["updated_at", "2019-12-11 23:26:10.739301"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1544], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1812], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1812], ["room_id", 1544], ["created_at", "2019-12-11 23:26:10.743235"], ["updated_at", "2019-12-11 23:26:10.743235"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.745867"], ["last_sign_in_at", "2019-12-11 23:26:10.745867"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.746455"], ["id", 1812]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KUzfNcWgDAsGpRC8M/PMgO5InwtMMFPRYqCM/rEym78n9Gj7qg5iO"], ["created_at", "2019-12-11 23:26:10.757583"], ["updated_at", "2019-12-11 23:26:10.757583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.759659"], ["updated_at", "2019-12-11 23:26:10.759659"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1545], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1813], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1813], ["room_id", 1545], ["created_at", "2019-12-11 23:26:10.763967"], ["updated_at", "2019-12-11 23:26:10.763967"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1545], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1813], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1813], ["room_id", 1545], ["created_at", "2019-12-11 23:26:10.767741"], ["updated_at", "2019-12-11 23:26:10.767741"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.769994"], ["last_sign_in_at", "2019-12-11 23:26:10.769994"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.770526"], ["id", 1813]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$enJ2igxGWfsfMdTSLKQ3P.4fPzKg3doJ90HRpBdiippGievCi6Uay"], ["created_at", "2019-12-11 23:26:10.784671"], ["updated_at", "2019-12-11 23:26:10.784671"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.787373"], ["last_sign_in_at", "2019-12-11 23:26:10.787373"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.788028"], ["id", 1814]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 64ms (Views: 48.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E7Qbt3ZQULUdBzg4a76yYeeF11lW.N5wXgNiFkghfq6tAyclLLez6"], ["created_at", "2019-12-11 23:26:10.863658"], ["updated_at", "2019-12-11 23:26:10.863658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.865853"], ["last_sign_in_at", "2019-12-11 23:26:10.865853"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.866367"], ["id", 1815]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6q4HjRY65LqaizgJed9RseACyo0vXEs/ip77MfEKDm/w7KpKw.rrm"], ["created_at", "2019-12-11 23:26:10.876596"], ["updated_at", "2019-12-11 23:26:10.876596"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.879723"], ["last_sign_in_at", "2019-12-11 23:26:10.879723"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.880289"], ["id", 1816]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YHP7KtjvLrMhjHSGzDuOSOmLFhAq.XLmCX.8ibxkbFLki0XqEHIPe"], ["created_at", "2019-12-11 23:26:10.908918"], ["updated_at", "2019-12-11 23:26:10.908918"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.911518"], ["last_sign_in_at", "2019-12-11 23:26:10.911518"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.912038"], ["id", 1817]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:26:10 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cy06Pt4JDJfrhytCyqYmQe/MRotFLaCgLqSngAaJfUTSMQqCWSpM."], ["created_at", "2019-12-11 23:26:10.932242"], ["updated_at", "2019-12-11 23:26:10.932242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.934582"], ["updated_at", "2019-12-11 23:26:10.934582"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1546” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.936609"], ["last_sign_in_at", "2019-12-11 23:26:10.936609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.937114"], ["id", 1818]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1546"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1546], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6TuFpbHYhwADQRKdBen1R.2Kpoa7dwzWHsyj/hj2IlOIg2bLdpeIW"], ["created_at", "2019-12-11 23:26:10.965592"], ["updated_at", "2019-12-11 23:26:10.965592"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.968065"], ["updated_at", "2019-12-11 23:26:10.968065"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1547” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.971129"], ["last_sign_in_at", "2019-12-11 23:26:10.971129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:10.971824"], ["id", 1819]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1547"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1547], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.983059"], ["updated_at", "2019-12-11 23:26:10.983059"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1548” for 127.0.0.1 at 2019-12-11 20:26:10 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1548"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lUzeCx6Gbq46TlWDZxGo4O/CYmqOe2OACV5WPBbR0fpNWMCwPc8Fu"], ["created_at", "2019-12-11 23:26:10.994691"], ["updated_at", "2019-12-11 23:26:10.994691"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:10.997369"], ["updated_at", "2019-12-11 23:26:10.997369"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1549/edit” for 127.0.0.1 at 2019-12-11 20:26:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:10.999632"], ["last_sign_in_at", "2019-12-11 23:26:10.999632"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.000288"], ["id", 1820]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1549"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1549], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qQYpqGdPvx3Gfv77bUa/qudQt9XAeqrjHeLGX/zq4JKmdM0kDcqUa"], ["created_at", "2019-12-11 23:26:11.031320"], ["updated_at", "2019-12-11 23:26:11.031320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.034260"], ["updated_at", "2019-12-11 23:26:11.034260"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1550/edit” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.036506"], ["last_sign_in_at", "2019-12-11 23:26:11.036506"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.036989"], ["id", 1821]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1550"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1550], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.047358"], ["updated_at", "2019-12-11 23:26:11.047358"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1551” for 127.0.0.1 at 2019-12-11 20:26:11 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1551"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZIOC/NY2pFBnC9ltd.DPw.DqhbbGwsD.psT9K.lKMP9PmqpVMCHam"], ["created_at", "2019-12-11 23:26:11.058795"], ["updated_at", "2019-12-11 23:26:11.058795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.069207"], ["last_sign_in_at", "2019-12-11 23:26:11.069207"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.069776"], ["id", 1822]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.074677"], ["updated_at", "2019-12-11 23:26:11.074677"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EDTEzvN4OrUZZoOYG9IHDe/MLgceFn/yzuWktSIh/norTpgnw0u6y"], ["created_at", "2019-12-11 23:26:11.082874"], ["updated_at", "2019-12-11 23:26:11.082874"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.085304"], ["last_sign_in_at", "2019-12-11 23:26:11.085304"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.085709"], ["id", 1823]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.088924"], ["updated_at", "2019-12-11 23:26:11.088924"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xj8rkqSRbwT7ecWIBBTEWecGuZSyXE/eW7EySNPx8dX/HEOIoqLgq"], ["created_at", "2019-12-11 23:26:11.096967"], ["updated_at", "2019-12-11 23:26:11.096967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.099552"], ["last_sign_in_at", "2019-12-11 23:26:11.099552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.100001"], ["id", 1824]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JO9IMl6rLWhv6K2itZs0ye81/DV8ECPj4c.cL7WUL6QPIPgnY152O"], ["created_at", "2019-12-11 23:26:11.109586"], ["updated_at", "2019-12-11 23:26:11.109586"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.112495"], ["last_sign_in_at", "2019-12-11 23:26:11.112495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.113025"], ["id", 1825]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f67T4BtzriiEfZZXETVBmuWBU5lAQ/Pq3Do9UruOmG6O/bp9uaFqS"], ["created_at", "2019-12-11 23:26:11.123173"], ["updated_at", "2019-12-11 23:26:11.123173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.125933"], ["last_sign_in_at", "2019-12-11 23:26:11.125933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.126461"], ["id", 1826]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lIq35SRTJdv06xOXWjl/OOQVkWBpRRERm7hVA.khF/.astg7IYJXC"], ["created_at", "2019-12-11 23:26:11.136813"], ["updated_at", "2019-12-11 23:26:11.136813"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.138860"], ["updated_at", "2019-12-11 23:26:11.138860"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1554” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.140991"], ["last_sign_in_at", "2019-12-11 23:26:11.140991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.141537"], ["id", 1827]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1554"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1554], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:26:11.145596"], ["id", 1554]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1554 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YgyMZ3pXwrNBRM4ddElAbOc.M27yWRLgDigYWBxJHONHG9IPv9MOu"], ["created_at", "2019-12-11 23:26:11.153356"], ["updated_at", "2019-12-11 23:26:11.153356"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.155497"], ["updated_at", "2019-12-11 23:26:11.155497"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1555” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.157657"], ["last_sign_in_at", "2019-12-11 23:26:11.157657"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.158161"], ["id", 1828]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1555"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1555], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:26:11.162406"], ["id", 1555]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1555 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pTPnq6cRRyI.ZQ7J0FHvOeOJtASEdABvmxnMQ5lVNW0doduPOgPX6"], ["created_at", "2019-12-11 23:26:11.170876"], ["updated_at", "2019-12-11 23:26:11.170876"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.172903"], ["updated_at", "2019-12-11 23:26:11.172903"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1556” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.175122"], ["last_sign_in_at", "2019-12-11 23:26:11.175122"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.175646"], ["id", 1829]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1556"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1556], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5yFZlCl1C1qKgcQ.yM1RLehn1GpiYaXKpgFk3XS641oagcPUUzjTi"], ["created_at", "2019-12-11 23:26:11.190320"], ["updated_at", "2019-12-11 23:26:11.190320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.192586"], ["updated_at", "2019-12-11 23:26:11.192586"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1557” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.195412"], ["last_sign_in_at", "2019-12-11 23:26:11.195412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.196010"], ["id", 1830]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1557"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1557], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zI7w2ZsCh9AVxnQOn3C5g.U76gs8hO.Eiljysof6avBP9vcCS5awq"], ["created_at", "2019-12-11 23:26:11.210339"], ["updated_at", "2019-12-11 23:26:11.210339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.213393"], ["last_sign_in_at", "2019-12-11 23:26:11.213393"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.214047"], ["id", 1831]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZF9h5z0nvCQ3K0zhrVVXOulCxErSI5GzW4Ovq8XCY6yswo0tcf8xC"], ["created_at", "2019-12-11 23:26:11.224137"], ["updated_at", "2019-12-11 23:26:11.224137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.226325"], ["updated_at", "2019-12-11 23:26:11.226325"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1558” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.228543"], ["last_sign_in_at", "2019-12-11 23:26:11.228543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.229107"], ["id", 1832]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1558"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1558], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1558]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bWEbxO6QqbilzkwGm0iKbe6tcQBKFUBaRp3UxbxFjwNgkk3f85ITG"], ["created_at", "2019-12-11 23:26:11.240252"], ["updated_at", "2019-12-11 23:26:11.240252"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.242415"], ["updated_at", "2019-12-11 23:26:11.242415"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1559” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.244347"], ["last_sign_in_at", "2019-12-11 23:26:11.244347"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.245307"], ["id", 1833]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1559"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1559], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1559]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bn8s6JwxvInRCSORZRceFe6o7eud.PXLV7qd73A8PiOHDGauNaOxy"], ["created_at", "2019-12-11 23:26:11.257018"], ["updated_at", "2019-12-11 23:26:11.257018"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.259240"], ["updated_at", "2019-12-11 23:26:11.259240"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1560” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.261495"], ["last_sign_in_at", "2019-12-11 23:26:11.261495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.262113"], ["id", 1834]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1560"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uihAktDsSybcTwnXk7m/RuOxd3ampxiydudNP8ehujm2NgQXlAj7S"], ["created_at", "2019-12-11 23:26:11.271231"], ["updated_at", "2019-12-11 23:26:11.271231"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:26:11.273354"], ["updated_at", "2019-12-11 23:26:11.273354"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1561” for 127.0.0.1 at 2019-12-11 20:26:11 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:26:11.275173"], ["last_sign_in_at", "2019-12-11 23:26:11.275173"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:26:11.275651"], ["id", 1835]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1561"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zoTm8fwXbyPxGWy63DB2feKTh3brf1RHY/prjSXxL.nFralyEUv62"], ["created_at", "2019-12-11 23:30:08.205702"], ["updated_at", "2019-12-11 23:30:08.205702"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.214954"], ["updated_at", "2019-12-11 23:30:08.214954"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1836], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered appointments/my_appointments.html.erb within layouts/application (0.4ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 174ms (Views: 116.3ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$W44iaA3zxIeKDE/uC5gI5.wGEOjrKGy/L.AnKfB/pQJDPUXWsubmu"], ["created_at", "2019-12-11 23:30:08.399363"], ["updated_at", "2019-12-11 23:30:08.399363"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.401752"], ["updated_at", "2019-12-11 23:30:08.401752"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1563], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1837], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1837], ["room_id", 1563], ["created_at", "2019-12-11 23:30:08.440870"], ["updated_at", "2019-12-11 23:30:08.440870"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qRdMkLuMpp8uYkdUUqMg/.VhxeK07tRfNemaHgEyaYuUpssTheEIK"], ["created_at", "2019-12-11 23:30:08.482575"], ["updated_at", "2019-12-11 23:30:08.482575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.484790"], ["updated_at", "2019-12-11 23:30:08.484790"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1564], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1838], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1838], ["room_id", 1564], ["created_at", "2019-12-11 23:30:08.489360"], ["updated_at", "2019-12-11 23:30:08.489360"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YcpbD.15rLVcDvNtiGh8iOAO9pWTFMmGwBoGb6DksHdAueOqBooeW"], ["created_at", "2019-12-11 23:30:08.498632"], ["updated_at", "2019-12-11 23:30:08.498632"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.501113"], ["updated_at", "2019-12-11 23:30:08.501113"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1565], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1839], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1839], ["room_id", 1565], ["created_at", "2019-12-11 23:30:08.505911"], ["updated_at", "2019-12-11 23:30:08.505911"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.h08Ggp2K.uU8wmQpnbgOOtxBsQTSwmSh9bQ8VgXrQv/XZwXeuTMi"], ["created_at", "2019-12-11 23:30:08.521981"], ["updated_at", "2019-12-11 23:30:08.521981"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.524511"], ["updated_at", "2019-12-11 23:30:08.524511"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1566"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1566], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1566')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)

Completed 200 OK in 108ms (Views: 75.1ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yEcM2NvvBl/tiCqsrhE9leTZXmbepgQ/xvvfuYwwtAesbV7zQ2glO"], ["created_at", "2019-12-11 23:30:08.642262"], ["updated_at", "2019-12-11 23:30:08.642262"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.644513"], ["updated_at", "2019-12-11 23:30:08.644513"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1567], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1841], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1841], ["room_id", 1567], ["created_at", "2019-12-11 23:30:08.648433"], ["updated_at", "2019-12-11 23:30:08.648433"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1567"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1567], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1567')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SGuAKNRwFLEpqzm02.62tO9psktHAAwgRvSbN1.ZlSFeTxRWNSuiC"], ["created_at", "2019-12-11 23:30:08.659095"], ["updated_at", "2019-12-11 23:30:08.659095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.661354"], ["updated_at", "2019-12-11 23:30:08.661354"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1568], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1842], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1842], ["room_id", 1568], ["created_at", "2019-12-11 23:30:08.665153"], ["updated_at", "2019-12-11 23:30:08.665153"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1568"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1568], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1568')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FovHrdAipcC5H1vjXr/tI.7O2/2iQ850C6KnSupyVfdmOJKoWeAlW"], ["created_at", "2019-12-11 23:30:08.676846"], ["updated_at", "2019-12-11 23:30:08.676846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.679049"], ["updated_at", "2019-12-11 23:30:08.679049"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1569], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1843], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1843], ["room_id", 1569], ["created_at", "2019-12-11 23:30:08.682844"], ["updated_at", "2019-12-11 23:30:08.682844"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1569"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1569], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1569')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qq2AVL9cw8v3lPYUNxNet.lWs.nAXEf38STUsCFX83YkY7Upl5/Be"], ["created_at", "2019-12-11 23:30:08.693801"], ["updated_at", "2019-12-11 23:30:08.693801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:08.695982"], ["updated_at", "2019-12-11 23:30:08.695982"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1570], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1844], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1844], ["room_id", 1570], ["created_at", "2019-12-11 23:30:08.699712"], ["updated_at", "2019-12-11 23:30:08.699712"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1570"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1570], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1570')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 109ms (Views: 77.4ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sG1KGyTXKYldxaNo/tok2.EHMqwePFUs/xFARKl8zntdMkCyufeLC"], ["created_at", "2019-12-11 23:30:09.282966"], ["updated_at", "2019-12-11 23:30:09.282966"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.285384"], ["updated_at", "2019-12-11 23:30:09.285384"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.306415"], ["last_sign_in_at", "2019-12-11 23:30:09.306415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.307076"], ["id", 1845]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1571"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1571], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1845], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1845], ["room_id", 1571], ["created_at", "2019-12-11 23:30:09.315312"], ["updated_at", "2019-12-11 23:30:09.315312"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1571], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7/8RiLTrgkVgUM3nNHVFROGxceBTvVv25BjUW0tyNHuUcuU/tpM2W"], ["created_at", "2019-12-11 23:30:09.324888"], ["updated_at", "2019-12-11 23:30:09.324888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.327107"], ["updated_at", "2019-12-11 23:30:09.327107"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.329491"], ["last_sign_in_at", "2019-12-11 23:30:09.329491"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.330094"], ["id", 1846]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "room_id"=>"1572"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1572], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1846], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1846], ["room_id", 1572], ["created_at", "2019-12-11 23:30:09.335213"], ["updated_at", "2019-12-11 23:30:09.335213"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fZRFgCiobcaTADXsIJhrCOyqWnPkNzdI2XKlJ1QtkFkm.tqoZyOBK"], ["created_at", "2019-12-11 23:30:09.344097"], ["updated_at", "2019-12-11 23:30:09.344097"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.346520"], ["updated_at", "2019-12-11 23:30:09.346520"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.349072"], ["last_sign_in_at", "2019-12-11 23:30:09.349072"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.349597"], ["id", 1847]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1573"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1573], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$imf96KO/Mns5fwyDrOizgONw4hGhxwvMXVbONgkMTIOKTPojX2.we"], ["created_at", "2019-12-11 23:30:09.360325"], ["updated_at", "2019-12-11 23:30:09.360325"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.362693"], ["updated_at", "2019-12-11 23:30:09.362693"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.365052"], ["last_sign_in_at", "2019-12-11 23:30:09.365052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.365599"], ["id", 1848]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "room_id"=>"1574"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3VU3xviW0TtI.0PAjgLmgeAtI7GVzAGcWJCToK6HO8QhE03u.v/tC"], ["created_at", "2019-12-11 23:30:09.376367"], ["updated_at", "2019-12-11 23:30:09.376367"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.378637"], ["updated_at", "2019-12-11 23:30:09.378637"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1575], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1849], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1849], ["room_id", 1575], ["created_at", "2019-12-11 23:30:09.382288"], ["updated_at", "2019-12-11 23:30:09.382288"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1575” for 127.0.0.1 at 2019-12-11 20:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.384657"], ["last_sign_in_at", "2019-12-11 23:30:09.384657"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.385141"], ["id", 1849]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1575"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1575], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1575')
Rendered appointments/show.html.erb within layouts/application (21.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 400ms (Views: 382.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$G2FFcNhmE9whSt7Ih0awK.hZOEEXMfXfRTjIeLkZNm6GmNPUibZaK"], ["created_at", "2019-12-11 23:30:09.796259"], ["updated_at", "2019-12-11 23:30:09.796259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.798524"], ["updated_at", "2019-12-11 23:30:09.798524"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1576], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1850], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1850], ["room_id", 1576], ["created_at", "2019-12-11 23:30:09.802361"], ["updated_at", "2019-12-11 23:30:09.802361"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1576], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1850], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1850], ["room_id", 1576], ["created_at", "2019-12-11 23:30:09.807265"], ["updated_at", "2019-12-11 23:30:09.807265"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.809711"], ["last_sign_in_at", "2019-12-11 23:30:09.809711"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.810266"], ["id", 1850]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1850]]
Rendered appointments/my_appointments.html.erb within layouts/application (20.6ms)

Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kQE8rK4iSFLeDH/jZPMVVufjopraBx1HVR4IshRV2avZRUz0rcPSa"], ["created_at", "2019-12-11 23:30:09.857038"], ["updated_at", "2019-12-11 23:30:09.857038"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.859327"], ["updated_at", "2019-12-11 23:30:09.859327"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1577], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1851], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1851], ["room_id", 1577], ["created_at", "2019-12-11 23:30:09.863134"], ["updated_at", "2019-12-11 23:30:09.863134"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1577], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1851], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1851], ["room_id", 1577], ["created_at", "2019-12-11 23:30:09.867079"], ["updated_at", "2019-12-11 23:30:09.867079"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.869604"], ["last_sign_in_at", "2019-12-11 23:30:09.869604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.870210"], ["id", 1851]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1851]]
Rendered appointments/my_appointments.html.erb within layouts/application (17.1ms)

Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dslzDGZZLD7.nGOpLTo02.Z83M.8iADI3mHnGyJ.FC6xsjd.8qMO6"], ["created_at", "2019-12-11 23:30:09.897018"], ["updated_at", "2019-12-11 23:30:09.897018"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.899353"], ["updated_at", "2019-12-11 23:30:09.899353"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1578], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1852], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["user_id", 1852], ["room_id", 1578], ["created_at", "2019-12-11 23:30:09.903920"], ["updated_at", "2019-12-11 23:30:09.903920"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/867” for 127.0.0.1 at 2019-12-11 20:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.906379"], ["last_sign_in_at", "2019-12-11 23:30:09.906379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.906873"], ["id", 1852]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"867"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 867], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 867]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3oc2O3Lb7g98ZDYyOLdW1ekKIX6lIKjWxdpIMFEVCjBvSmLuhvVYW"], ["created_at", "2019-12-11 23:30:09.920909"], ["updated_at", "2019-12-11 23:30:09.920909"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.923129"], ["last_sign_in_at", "2019-12-11 23:30:09.923129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.923676"], ["id", 1853]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 36ms (Views: 18.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9viLYFq7YjChdh.Npx39s.A185EDgFUWxVyoeUTy.9CFAUUBcEPym"], ["created_at", "2019-12-11 23:30:09.968476"], ["updated_at", "2019-12-11 23:30:09.968476"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.971153"], ["updated_at", "2019-12-11 23:30:09.971153"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1579], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1854], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1854], ["room_id", 1579], ["created_at", "2019-12-11 23:30:09.975082"], ["updated_at", "2019-12-11 23:30:09.975082"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1579], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1854], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1854], ["room_id", 1579], ["created_at", "2019-12-11 23:30:09.979025"], ["updated_at", "2019-12-11 23:30:09.979025"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:30:09 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:09.981409"], ["last_sign_in_at", "2019-12-11 23:30:09.981409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:09.981920"], ["id", 1854]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1579], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1854], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1854], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q04oMDtMemdSkcuuQmMxUuJs14RjDbdmbVg0TtOHtRhvfesSMdlui"], ["created_at", "2019-12-11 23:30:09.995933"], ["updated_at", "2019-12-11 23:30:09.995933"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:09.998223"], ["updated_at", "2019-12-11 23:30:09.998223"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1580], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1855], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1855], ["room_id", 1580], ["created_at", "2019-12-11 23:30:10.002443"], ["updated_at", "2019-12-11 23:30:10.002443"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1580], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1855], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1855], ["room_id", 1580], ["created_at", "2019-12-11 23:30:10.006966"], ["updated_at", "2019-12-11 23:30:10.006966"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.009425"], ["last_sign_in_at", "2019-12-11 23:30:10.009425"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.009915"], ["id", 1855]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1580], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1855], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1855], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BrQghdFsZkuiMSkmhr5Ylexr2KwbLLYgB7B8/X/qD5kEeUgeseb/G"], ["created_at", "2019-12-11 23:30:10.024647"], ["updated_at", "2019-12-11 23:30:10.024647"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.026890"], ["updated_at", "2019-12-11 23:30:10.026890"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1581], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1856], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1856], ["room_id", 1581], ["created_at", "2019-12-11 23:30:10.030750"], ["updated_at", "2019-12-11 23:30:10.030750"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1581], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1856], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1856], ["room_id", 1581], ["created_at", "2019-12-11 23:30:10.034597"], ["updated_at", "2019-12-11 23:30:10.034597"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.037291"], ["last_sign_in_at", "2019-12-11 23:30:10.037291"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.037836"], ["id", 1856]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UmKsMekaZ2yrZLkBHbpteeqNB9mKGdCPJxmtMElr4x8MwzAzLY3NS"], ["created_at", "2019-12-11 23:30:10.048606"], ["updated_at", "2019-12-11 23:30:10.048606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.050805"], ["updated_at", "2019-12-11 23:30:10.050805"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1582], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1857], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1857], ["room_id", 1582], ["created_at", "2019-12-11 23:30:10.055215"], ["updated_at", "2019-12-11 23:30:10.055215"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1582], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1857], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1857], ["room_id", 1582], ["created_at", "2019-12-11 23:30:10.059274"], ["updated_at", "2019-12-11 23:30:10.059274"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.061700"], ["last_sign_in_at", "2019-12-11 23:30:10.061700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.062206"], ["id", 1857]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VlCLxfv/OrSDi2ClSI4.uulf3g4qiy0T14WU/SJAGDeQTSW9CfkWa"], ["created_at", "2019-12-11 23:30:10.076609"], ["updated_at", "2019-12-11 23:30:10.076609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.078969"], ["last_sign_in_at", "2019-12-11 23:30:10.078969"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.079496"], ["id", 1858]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 65ms (Views: 48.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RWWPAT/klnObs2twjPM5uO8neB4ctBnzGa5iZwPD3m5ySkm3Tfk8G"], ["created_at", "2019-12-11 23:30:10.156690"], ["updated_at", "2019-12-11 23:30:10.156690"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.158903"], ["last_sign_in_at", "2019-12-11 23:30:10.158903"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.159390"], ["id", 1859]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$smnZ/XYSnRrm8AO/B8RmX.8Y13nEtVufRERZ.B80psMRsWnd9WBVS"], ["created_at", "2019-12-11 23:30:10.170129"], ["updated_at", "2019-12-11 23:30:10.170129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.172759"], ["last_sign_in_at", "2019-12-11 23:30:10.172759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.173294"], ["id", 1860]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DcUwZCBXB2X9aQFcYH3TxetLXZHvbOlQUi2EqbJPXNi1Y.LvjApC6"], ["created_at", "2019-12-11 23:30:10.201590"], ["updated_at", "2019-12-11 23:30:10.201590"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.204379"], ["last_sign_in_at", "2019-12-11 23:30:10.204379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.204866"], ["id", 1861]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bYqQYMnm2guDWZvGf9KTm.sdogqwrk/UneJM.LA27mis8uzHs10ma"], ["created_at", "2019-12-11 23:30:10.224015"], ["updated_at", "2019-12-11 23:30:10.224015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.226771"], ["updated_at", "2019-12-11 23:30:10.226771"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1583” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.228951"], ["last_sign_in_at", "2019-12-11 23:30:10.228951"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.229498"], ["id", 1862]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1583"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1583], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8YRqKFl6D8zGf3HYIIfXG.zOmxU6S36MlSjwtHCe2pHWn4.5nLHGq"], ["created_at", "2019-12-11 23:30:10.257947"], ["updated_at", "2019-12-11 23:30:10.257947"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.260365"], ["updated_at", "2019-12-11 23:30:10.260365"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1584” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.262669"], ["last_sign_in_at", "2019-12-11 23:30:10.262669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.263190"], ["id", 1863]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1584"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1584], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.273358"], ["updated_at", "2019-12-11 23:30:10.273358"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1585” for 127.0.0.1 at 2019-12-11 20:30:10 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1585"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DIoMx2bvj7u3NXzWYbceAeqVhgfjVD5/YNVSHAUGHkWfcWjwr7PkK"], ["created_at", "2019-12-11 23:30:10.283440"], ["updated_at", "2019-12-11 23:30:10.283440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.285821"], ["updated_at", "2019-12-11 23:30:10.285821"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1586/edit” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.288337"], ["last_sign_in_at", "2019-12-11 23:30:10.288337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.288881"], ["id", 1864]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1586"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1586], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iV0/Nh6DXzpcSh4uiCuY2uQZ3MNPeFLCNin767Msq7mZlxYni.Clu"], ["created_at", "2019-12-11 23:30:10.318087"], ["updated_at", "2019-12-11 23:30:10.318087"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.320660"], ["updated_at", "2019-12-11 23:30:10.320660"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1587/edit” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.322961"], ["last_sign_in_at", "2019-12-11 23:30:10.322961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.323512"], ["id", 1865]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1587"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1587], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.334576"], ["updated_at", "2019-12-11 23:30:10.334576"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1588” for 127.0.0.1 at 2019-12-11 20:30:10 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1588"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jkpWgwkPOxG1FJbPiZN0p.jf/nHtcg.uVfAQf7jPRR2Uuw6ImuglG"], ["created_at", "2019-12-11 23:30:10.354493"], ["updated_at", "2019-12-11 23:30:10.354493"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.357464"], ["last_sign_in_at", "2019-12-11 23:30:10.357464"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.357941"], ["id", 1866]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.361139"], ["updated_at", "2019-12-11 23:30:10.361139"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e7CgDGfaR1n37n24mTnQ8eJmJiMaR3c4tqzbS8CL90./5vJgi122y"], ["created_at", "2019-12-11 23:30:10.369838"], ["updated_at", "2019-12-11 23:30:10.369838"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.372568"], ["last_sign_in_at", "2019-12-11 23:30:10.372568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.373050"], ["id", 1867]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.376474"], ["updated_at", "2019-12-11 23:30:10.376474"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gfP/kBA.2GtEwEy/rPaQVe/3z1CclNFVAjV.UHIjHNwuzBrk.EsPS"], ["created_at", "2019-12-11 23:30:10.385011"], ["updated_at", "2019-12-11 23:30:10.385011"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.387885"], ["last_sign_in_at", "2019-12-11 23:30:10.387885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.388434"], ["id", 1868]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mbLOsA.DQ5pcVl4YBTWWxOX8wmJje6Do.uh6jcSPcKuLGNkxLTeHm"], ["created_at", "2019-12-11 23:30:10.398839"], ["updated_at", "2019-12-11 23:30:10.398839"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.401324"], ["last_sign_in_at", "2019-12-11 23:30:10.401324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.401812"], ["id", 1869]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VA5zdU1ZZ5YNntyZdkVQv.gxpsrmCeE6.obtBvrA.xaqat5zdPwHS"], ["created_at", "2019-12-11 23:30:10.413540"], ["updated_at", "2019-12-11 23:30:10.413540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.416172"], ["last_sign_in_at", "2019-12-11 23:30:10.416172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.416726"], ["id", 1870]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DLZvPj70wQdhFtaH22arjucOQIzy75R7xXNlvImqT4FWqfJ5R0XGi"], ["created_at", "2019-12-11 23:30:10.427613"], ["updated_at", "2019-12-11 23:30:10.427613"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.429813"], ["updated_at", "2019-12-11 23:30:10.429813"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1591” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.432225"], ["last_sign_in_at", "2019-12-11 23:30:10.432225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.432771"], ["id", 1871]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1591"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1591], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:30:10.437096"], ["id", 1591]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1591 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YPE.U1VBqnhNrDkgKxHa8emnk4HnmFEacC2.0osZzjHImRl2pD0sG"], ["created_at", "2019-12-11 23:30:10.445497"], ["updated_at", "2019-12-11 23:30:10.445497"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.447724"], ["updated_at", "2019-12-11 23:30:10.447724"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1592” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.450075"], ["last_sign_in_at", "2019-12-11 23:30:10.450075"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.450630"], ["id", 1872]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1592"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1592], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:30:10.455013"], ["id", 1592]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1592 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QUNuTioF6I1YvDDh3.RLx.1dVQLaYZ.KFyo4lShqAc565wRROYMOe"], ["created_at", "2019-12-11 23:30:10.463635"], ["updated_at", "2019-12-11 23:30:10.463635"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.465938"], ["updated_at", "2019-12-11 23:30:10.465938"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1593” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.468285"], ["last_sign_in_at", "2019-12-11 23:30:10.468285"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.469036"], ["id", 1873]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1593"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1593], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$imfRU8KUZuSEpK6zZ2Fs5u6IofgeXiCGGc0yMzTA/H4y05AKUhx2u"], ["created_at", "2019-12-11 23:30:10.483363"], ["updated_at", "2019-12-11 23:30:10.483363"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.485819"], ["updated_at", "2019-12-11 23:30:10.485819"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1594” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.488517"], ["last_sign_in_at", "2019-12-11 23:30:10.488517"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.489156"], ["id", 1874]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1594"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1594], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ykeNwFpAWj.ezcYlzpsjQOJvTH23RAKZmUZqWGQzjVFx/LQJ7TV12"], ["created_at", "2019-12-11 23:30:10.504024"], ["updated_at", "2019-12-11 23:30:10.504024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.506769"], ["last_sign_in_at", "2019-12-11 23:30:10.506769"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.507250"], ["id", 1875]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$48RFGA4MN1C72IXLJC3TVucSG41dtw4uFHXOJBtYyF66ffPBLxWdS"], ["created_at", "2019-12-11 23:30:10.518168"], ["updated_at", "2019-12-11 23:30:10.518168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.520677"], ["updated_at", "2019-12-11 23:30:10.520677"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1595” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.522596"], ["last_sign_in_at", "2019-12-11 23:30:10.522596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.523092"], ["id", 1876]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1595"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1595], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1595]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lw75ubANSfu.YLUVvWkUe.UMbq4x2uJwTxJMIERRXgdlGTzDHAvJu"], ["created_at", "2019-12-11 23:30:10.533935"], ["updated_at", "2019-12-11 23:30:10.533935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.536556"], ["updated_at", "2019-12-11 23:30:10.536556"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1596” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.538649"], ["last_sign_in_at", "2019-12-11 23:30:10.538649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.539231"], ["id", 1877]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1596"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1596], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1596]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aFIgvSv7uIpQiXT3Z.fQFueBJe8sVVr5GgDFsUXG1.6UZLoqiAldW"], ["created_at", "2019-12-11 23:30:10.550530"], ["updated_at", "2019-12-11 23:30:10.550530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.553157"], ["updated_at", "2019-12-11 23:30:10.553157"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1597” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.555297"], ["last_sign_in_at", "2019-12-11 23:30:10.555297"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.555786"], ["id", 1878]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1597"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h8Pbpwef1GnaWH46H7GRRuh8EWcNWptB/iFnOlk3A7RlqTBO0Q3fC"], ["created_at", "2019-12-11 23:30:10.564885"], ["updated_at", "2019-12-11 23:30:10.564885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:30:10.566917"], ["updated_at", "2019-12-11 23:30:10.566917"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1598” for 127.0.0.1 at 2019-12-11 20:30:10 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:30:10.568665"], ["last_sign_in_at", "2019-12-11 23:30:10.568665"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:30:10.569518"], ["id", 1879]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1598"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hI6x.ys1lRzYG10noCS02.IqMpE3wlRmr4qXFHFVnxT7ddMk2kRz2"], ["created_at", "2019-12-11 23:37:56.822842"], ["updated_at", "2019-12-11 23:37:56.822842"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:56.832219"], ["updated_at", "2019-12-11 23:37:56.832219"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1880], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 172ms (Views: 115.5ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0oNlzSK58ojLIGUl3.vq/.vUkhbbO5S43LeeoS/WCsIhgtjonTsyW"], ["created_at", "2019-12-11 23:37:57.014870"], ["updated_at", "2019-12-11 23:37:57.014870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.017163"], ["updated_at", "2019-12-11 23:37:57.017163"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1600], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1881], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1881], ["room_id", 1600], ["created_at", "2019-12-11 23:37:57.056647"], ["updated_at", "2019-12-11 23:37:57.056647"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QoEITaA1XSNh6VNd8pyoV.bSDVlkUAWc.FGoGirVrkhTcBgnvpJWq"], ["created_at", "2019-12-11 23:37:57.097989"], ["updated_at", "2019-12-11 23:37:57.097989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.100238"], ["updated_at", "2019-12-11 23:37:57.100238"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1601], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1882], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1882], ["room_id", 1601], ["created_at", "2019-12-11 23:37:57.104875"], ["updated_at", "2019-12-11 23:37:57.104875"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/1ve5dHWKtEyZV3VUq7ih.5oLcLI6RqPly9mK5iZ.iJuvy7v1INOC"], ["created_at", "2019-12-11 23:37:57.114242"], ["updated_at", "2019-12-11 23:37:57.114242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.116788"], ["updated_at", "2019-12-11 23:37:57.116788"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1602], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1883], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1883], ["room_id", 1602], ["created_at", "2019-12-11 23:37:57.121969"], ["updated_at", "2019-12-11 23:37:57.121969"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$y.aq2LGdqG/J4YFdLvf7M.d/kXjB8w1C.2hgqYsy9fCeLJmkl8tjW"], ["created_at", "2019-12-11 23:37:57.138956"], ["updated_at", "2019-12-11 23:37:57.138956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.141565"], ["updated_at", "2019-12-11 23:37:57.141565"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1603"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1603], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1603')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)

Completed 200 OK in 109ms (Views: 74.8ms | ActiveRecord: 0.9ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$89PLGz9zRBCALXwpvmJnzuaMmyqLX/UkjTb6h/9osAWOnH8JkWUwe"], ["created_at", "2019-12-11 23:37:57.260227"], ["updated_at", "2019-12-11 23:37:57.260227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.262559"], ["updated_at", "2019-12-11 23:37:57.262559"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1604], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1885], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1885], ["room_id", 1604], ["created_at", "2019-12-11 23:37:57.266746"], ["updated_at", "2019-12-11 23:37:57.266746"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1604"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1604], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1604')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eayg9UxT.ZeB0pBVnFxXwuLo3sVUHjzT21yAMMH2hGM0lGE6dBvBq"], ["created_at", "2019-12-11 23:37:57.278060"], ["updated_at", "2019-12-11 23:37:57.278060"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.280396"], ["updated_at", "2019-12-11 23:37:57.280396"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1605], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1886], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1886], ["room_id", 1605], ["created_at", "2019-12-11 23:37:57.284654"], ["updated_at", "2019-12-11 23:37:57.284654"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1605"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1605], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1605')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HDwvSZW0eVN1lhljy4qgwOPOXhktzcIBK5ABCIN1Tw03OPduDJ0GO"], ["created_at", "2019-12-11 23:37:57.296437"], ["updated_at", "2019-12-11 23:37:57.296437"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.298811"], ["updated_at", "2019-12-11 23:37:57.298811"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1606], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1887], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1887], ["room_id", 1606], ["created_at", "2019-12-11 23:37:57.303446"], ["updated_at", "2019-12-11 23:37:57.303446"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1606"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1606], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1606')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YwrVrpvRqG6K.GRAzgzEZufCdQ/jHFCx7zpcpviUJmEfvWzfZ9I7e"], ["created_at", "2019-12-11 23:37:57.313371"], ["updated_at", "2019-12-11 23:37:57.313371"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.315621"], ["updated_at", "2019-12-11 23:37:57.315621"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1607], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1888], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1888], ["room_id", 1607], ["created_at", "2019-12-11 23:37:57.319956"], ["updated_at", "2019-12-11 23:37:57.319956"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1607"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1607], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1607')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 110ms (Views: 76.5ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jXjokB/iySQqXTPuarBEPOlLIVJPJfDmZJkHj/XY7C96txhgiT35."], ["created_at", "2019-12-11 23:37:57.900178"], ["updated_at", "2019-12-11 23:37:57.900178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.902669"], ["updated_at", "2019-12-11 23:37:57.902669"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:37:57 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:57.924409"], ["last_sign_in_at", "2019-12-11 23:37:57.924409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:57.925171"], ["id", 1889]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1608"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1608], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1889], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1889], ["room_id", 1608], ["created_at", "2019-12-11 23:37:57.932982"], ["updated_at", "2019-12-11 23:37:57.932982"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1608], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NXM7N2ZjOxWI2v4ZjLDyp.3f1VPYO6DDxBfYnAOQnpOf1wifP71Xm"], ["created_at", "2019-12-11 23:37:57.942831"], ["updated_at", "2019-12-11 23:37:57.942831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.945118"], ["updated_at", "2019-12-11 23:37:57.945118"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:37:57 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:57.947645"], ["last_sign_in_at", "2019-12-11 23:37:57.947645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:57.948176"], ["id", 1890]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1609"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1609], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1890], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1890], ["room_id", 1609], ["created_at", "2019-12-11 23:37:57.953360"], ["updated_at", "2019-12-11 23:37:57.953360"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LPs.17GcKCQbuU6pDpJ0nuTG31Gyyt6.HMOUdRXfbd23vtqpmrvyK"], ["created_at", "2019-12-11 23:37:57.962548"], ["updated_at", "2019-12-11 23:37:57.962548"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.965106"], ["updated_at", "2019-12-11 23:37:57.965106"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:37:57 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:57.968215"], ["last_sign_in_at", "2019-12-11 23:37:57.968215"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:57.968977"], ["id", 1891]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1610"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1610], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EQA86bic7Y.oCnT0PBeo.eW3tLpFImxhKHBMFKisMuko5Xsewp1Su"], ["created_at", "2019-12-11 23:37:57.978728"], ["updated_at", "2019-12-11 23:37:57.978728"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.980963"], ["updated_at", "2019-12-11 23:37:57.980963"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:37:57 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:57.983462"], ["last_sign_in_at", "2019-12-11 23:37:57.983462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:57.984135"], ["id", 1892]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1611"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$p7yJjKS/X3HmWTxp/SEiGOQ2I1YNSiByJUl88ICWz3CCBk.c328Zi"], ["created_at", "2019-12-11 23:37:57.994733"], ["updated_at", "2019-12-11 23:37:57.994733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:57.996977"], ["updated_at", "2019-12-11 23:37:57.996977"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1612], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1893], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1893], ["room_id", 1612], ["created_at", "2019-12-11 23:37:58.000682"], ["updated_at", "2019-12-11 23:37:58.000682"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1612” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.003659"], ["last_sign_in_at", "2019-12-11 23:37:58.003659"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.004171"], ["id", 1893]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1612"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1612], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1612')
Rendered appointments/show.html.erb within layouts/application (21.1ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 408ms (Views: 391.1ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YBfLxBCiDm8otSBXSg2A6.6vZtpU0swWsycptGzbRzWKoERfrhO6W"], ["created_at", "2019-12-11 23:37:58.422958"], ["updated_at", "2019-12-11 23:37:58.422958"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.425198"], ["updated_at", "2019-12-11 23:37:58.425198"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1613], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1894], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1894], ["room_id", 1613], ["created_at", "2019-12-11 23:37:58.429145"], ["updated_at", "2019-12-11 23:37:58.429145"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1613], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1894], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1894], ["room_id", 1613], ["created_at", "2019-12-11 23:37:58.432976"], ["updated_at", "2019-12-11 23:37:58.432976"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.435795"], ["last_sign_in_at", "2019-12-11 23:37:58.435795"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.436426"], ["id", 1894]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1894]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 4.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5rdJwQeCSmwTnqACVhIdguLxMGj.TZr9LhNRAGvfnYUXmqb6LKmpW"], ["created_at", "2019-12-11 23:37:58.466661"], ["updated_at", "2019-12-11 23:37:58.466661"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.469199"], ["updated_at", "2019-12-11 23:37:58.469199"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1614], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1895], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1895], ["room_id", 1614], ["created_at", "2019-12-11 23:37:58.473310"], ["updated_at", "2019-12-11 23:37:58.473310"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1614], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1895], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1895], ["room_id", 1614], ["created_at", "2019-12-11 23:37:58.477153"], ["updated_at", "2019-12-11 23:37:58.477153"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.479444"], ["last_sign_in_at", "2019-12-11 23:37:58.479444"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.479972"], ["id", 1895]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1895]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$D5MVuIhe7rtbeOytxpo/5.5AXMov79L6SFj5BZAeCyJnJIZOtje/."], ["created_at", "2019-12-11 23:37:58.493652"], ["updated_at", "2019-12-11 23:37:58.493652"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.495770"], ["updated_at", "2019-12-11 23:37:58.495770"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1615], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1896], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1896], ["room_id", 1615], ["created_at", "2019-12-11 23:37:58.499736"], ["updated_at", "2019-12-11 23:37:58.499736"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/890” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.502654"], ["last_sign_in_at", "2019-12-11 23:37:58.502654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.503181"], ["id", 1896]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"890"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 890], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 890]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IVnkpkAqNGCJR.PWtMiux.AjavmOVjmg9w2ebB9BKTdiNCx92sKPW"], ["created_at", "2019-12-11 23:37:58.516802"], ["updated_at", "2019-12-11 23:37:58.516802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.519620"], ["last_sign_in_at", "2019-12-11 23:37:58.519620"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.520145"], ["id", 1897]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 37ms (Views: 19.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7UODHRw3LzgMqpdXnhv7keC0E1tL8iOd9PBRYJzaNi3sccJ5J7.HK"], ["created_at", "2019-12-11 23:37:58.566149"], ["updated_at", "2019-12-11 23:37:58.566149"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.568761"], ["updated_at", "2019-12-11 23:37:58.568761"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1616], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1898], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1898], ["room_id", 1616], ["created_at", "2019-12-11 23:37:58.572882"], ["updated_at", "2019-12-11 23:37:58.572882"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1616], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1898], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1898], ["room_id", 1616], ["created_at", "2019-12-11 23:37:58.576896"], ["updated_at", "2019-12-11 23:37:58.576896"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.579365"], ["last_sign_in_at", "2019-12-11 23:37:58.579365"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.579864"], ["id", 1898]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1616], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1898], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1898], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2POKQTOZhA7mMwhiHnZoLOpR2YdRiGWkyUzJyRLBUt6lcKGuQBEkK"], ["created_at", "2019-12-11 23:37:58.594490"], ["updated_at", "2019-12-11 23:37:58.594490"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.596746"], ["updated_at", "2019-12-11 23:37:58.596746"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1617], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1899], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1899], ["room_id", 1617], ["created_at", "2019-12-11 23:37:58.600750"], ["updated_at", "2019-12-11 23:37:58.600750"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1617], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1899], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1899], ["room_id", 1617], ["created_at", "2019-12-11 23:37:58.605413"], ["updated_at", "2019-12-11 23:37:58.605413"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.607821"], ["last_sign_in_at", "2019-12-11 23:37:58.607821"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.608329"], ["id", 1899]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1617], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1899], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1899], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$./NLRiGRknN4TONexyesrOGZt9/tvYMBtF8fKOZ.5jsWS.j3tDEqm"], ["created_at", "2019-12-11 23:37:58.623744"], ["updated_at", "2019-12-11 23:37:58.623744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.625959"], ["updated_at", "2019-12-11 23:37:58.625959"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1618], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1900], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1900], ["room_id", 1618], ["created_at", "2019-12-11 23:37:58.629770"], ["updated_at", "2019-12-11 23:37:58.629770"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1618], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1900], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1900], ["room_id", 1618], ["created_at", "2019-12-11 23:37:58.633775"], ["updated_at", "2019-12-11 23:37:58.633775"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.636753"], ["last_sign_in_at", "2019-12-11 23:37:58.636753"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.637299"], ["id", 1900]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9qcRqNIQc8clI3tTz8Myp.DvrInUfewcxFI.A1xTFP2Vaz4C2ds0y"], ["created_at", "2019-12-11 23:37:58.648358"], ["updated_at", "2019-12-11 23:37:58.648358"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.650652"], ["updated_at", "2019-12-11 23:37:58.650652"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1619], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1901], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1901], ["room_id", 1619], ["created_at", "2019-12-11 23:37:58.655829"], ["updated_at", "2019-12-11 23:37:58.655829"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1619], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1901], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1901], ["room_id", 1619], ["created_at", "2019-12-11 23:37:58.660532"], ["updated_at", "2019-12-11 23:37:58.660532"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.663063"], ["last_sign_in_at", "2019-12-11 23:37:58.663063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.663698"], ["id", 1901]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ovUZyQjn33nZD00nPKcghu8fisuU2PIHa02VJinSiW/WLprjLsVpS"], ["created_at", "2019-12-11 23:37:58.677037"], ["updated_at", "2019-12-11 23:37:58.677037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.680175"], ["last_sign_in_at", "2019-12-11 23:37:58.680175"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.680784"], ["id", 1902]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (9.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 65ms (Views: 48.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uxLivJ4QcNOR5w8CKrMaXe/uP5YxF2WdGzCPnw0P4S/kZ8m/BTK2a"], ["created_at", "2019-12-11 23:37:58.759025"], ["updated_at", "2019-12-11 23:37:58.759025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.761323"], ["last_sign_in_at", "2019-12-11 23:37:58.761323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.761899"], ["id", 1903]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tcn1dsuJ9rILqFTnKqf2q.WhVwZ18zc2PXooifL0.lXP960RxVZMW"], ["created_at", "2019-12-11 23:37:58.771965"], ["updated_at", "2019-12-11 23:37:58.771965"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.774337"], ["last_sign_in_at", "2019-12-11 23:37:58.774337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.774860"], ["id", 1904]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G2NCMXSBVVby8/M/vovse.CHEwNNWABVGkyonIzCJkw7CfotDDDhy"], ["created_at", "2019-12-11 23:37:58.802921"], ["updated_at", "2019-12-11 23:37:58.802921"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.805087"], ["last_sign_in_at", "2019-12-11 23:37:58.805087"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.805593"], ["id", 1905]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rzUbpaUtEdndjABQhAYhQ.mPO.8bgQNPI3PhO91aL9hiarZwSfzWO"], ["created_at", "2019-12-11 23:37:58.824249"], ["updated_at", "2019-12-11 23:37:58.824249"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.826251"], ["updated_at", "2019-12-11 23:37:58.826251"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1620” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.828339"], ["last_sign_in_at", "2019-12-11 23:37:58.828339"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.828850"], ["id", 1906]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1620"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1620], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i30bOSdsee3zblMj.N8pcO/ZgIpjvGub6Eo/s.rmfSRIWD7R7B.um"], ["created_at", "2019-12-11 23:37:58.855638"], ["updated_at", "2019-12-11 23:37:58.855638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.857885"], ["updated_at", "2019-12-11 23:37:58.857885"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1621” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.860327"], ["last_sign_in_at", "2019-12-11 23:37:58.860327"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.860865"], ["id", 1907]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1621"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1621], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.870938"], ["updated_at", "2019-12-11 23:37:58.870938"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1622” for 127.0.0.1 at 2019-12-11 20:37:58 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1622"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hhS6ULMd/4D2GJE2DRBRC.fKXHj0Yct4W2mef1TN19QiQUiim2vt6"], ["created_at", "2019-12-11 23:37:58.881253"], ["updated_at", "2019-12-11 23:37:58.881253"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.883439"], ["updated_at", "2019-12-11 23:37:58.883439"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1623/edit” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.885770"], ["last_sign_in_at", "2019-12-11 23:37:58.885770"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.886359"], ["id", 1908]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1623"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1623], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3VsMw4rglloYO54fkDpqjexlPPgPNQtvY6aoZvIPsMyPVL6rX8lsW"], ["created_at", "2019-12-11 23:37:58.915202"], ["updated_at", "2019-12-11 23:37:58.915202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.917496"], ["updated_at", "2019-12-11 23:37:58.917496"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1624/edit” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.921346"], ["last_sign_in_at", "2019-12-11 23:37:58.921346"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.922232"], ["id", 1909]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1624"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1624], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.941187"], ["updated_at", "2019-12-11 23:37:58.941187"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1625” for 127.0.0.1 at 2019-12-11 20:37:58 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1625"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zhdFYv2VOOnvAdEcHrryOeC3QmZ8lmbuCPKSOR0amMmXuRbH5t1QG"], ["created_at", "2019-12-11 23:37:58.953250"], ["updated_at", "2019-12-11 23:37:58.953250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.955839"], ["last_sign_in_at", "2019-12-11 23:37:58.955839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.956401"], ["id", 1910]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.959693"], ["updated_at", "2019-12-11 23:37:58.959693"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4blsqb8QW9wnvwmjwsQ7c.r1p5ABko6nDjF7aov23CWNN5eJjMtXy"], ["created_at", "2019-12-11 23:37:58.968535"], ["updated_at", "2019-12-11 23:37:58.968535"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.971935"], ["last_sign_in_at", "2019-12-11 23:37:58.971935"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.972546"], ["id", 1911]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:58.975919"], ["updated_at", "2019-12-11 23:37:58.975919"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.RvQGYHWI74QJTz79Brf1.lgdUUlWake0d.D0XbmtCIHelQv8WAge"], ["created_at", "2019-12-11 23:37:58.984521"], ["updated_at", "2019-12-11 23:37:58.984521"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:58 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:58.987436"], ["last_sign_in_at", "2019-12-11 23:37:58.987436"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:58.987937"], ["id", 1912]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fUuIW6uidb50MSYlRW6DFOY3EMUnicZ1inDGr7kENH.jJE5wbtiIm"], ["created_at", "2019-12-11 23:37:58.998844"], ["updated_at", "2019-12-11 23:37:58.998844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.001743"], ["last_sign_in_at", "2019-12-11 23:37:59.001743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.002437"], ["id", 1913]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wTQVqyd5KHWu6XHAm3xZK.wp13Yq4CM3DblJ9jnBP27YqGNcF8gIG"], ["created_at", "2019-12-11 23:37:59.013556"], ["updated_at", "2019-12-11 23:37:59.013556"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.016185"], ["last_sign_in_at", "2019-12-11 23:37:59.016185"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.016697"], ["id", 1914]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1ctYhTuaRQ18yhE5yTUtrudyzyZHXjiHQiuqk2Wm620gb.x19yd7i"], ["created_at", "2019-12-11 23:37:59.027878"], ["updated_at", "2019-12-11 23:37:59.027878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.030242"], ["updated_at", "2019-12-11 23:37:59.030242"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1628” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.032682"], ["last_sign_in_at", "2019-12-11 23:37:59.032682"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.033196"], ["id", 1915]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1628"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1628], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:37:59.037569"], ["id", 1628]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1628 Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RJyGaqJ2sQmEynkbcCvgau2myLcvEhIgNJVH5FbUgi2QzN5dVqepC"], ["created_at", "2019-12-11 23:37:59.046082"], ["updated_at", "2019-12-11 23:37:59.046082"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.048396"], ["updated_at", "2019-12-11 23:37:59.048396"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1629” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.051078"], ["last_sign_in_at", "2019-12-11 23:37:59.051078"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.051918"], ["id", 1916]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1629"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1629], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:37:59.055912"], ["id", 1629]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1629 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ck.7QqKW7LqJ6u0wQwPb3Om3/HOhYPR04gosgHe1LMST.S.ZOH8PG"], ["created_at", "2019-12-11 23:37:59.064463"], ["updated_at", "2019-12-11 23:37:59.064463"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.066680"], ["updated_at", "2019-12-11 23:37:59.066680"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1630” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.069540"], ["last_sign_in_at", "2019-12-11 23:37:59.069540"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.070114"], ["id", 1917]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1630"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1630], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6Iwbb3sz6Kc4eMNL2cUCouciaOm9xbwdwcA7oG05qStnhw0uj.7LG"], ["created_at", "2019-12-11 23:37:59.084331"], ["updated_at", "2019-12-11 23:37:59.084331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.087139"], ["updated_at", "2019-12-11 23:37:59.087139"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1631” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.089660"], ["last_sign_in_at", "2019-12-11 23:37:59.089660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.090203"], ["id", 1918]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1631"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1631], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sPNOvXEo2AGK2f6XMpi2pOHwN0kxwdcDZRA99zNwYlvb2DPLH6mxq"], ["created_at", "2019-12-11 23:37:59.104790"], ["updated_at", "2019-12-11 23:37:59.104790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.107847"], ["last_sign_in_at", "2019-12-11 23:37:59.107847"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.108460"], ["id", 1919]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$awnCS4QQydGY6jwpAcE/UOo24tgrzrIYf0HEzwMT.uIIgXGi4J9Eu"], ["created_at", "2019-12-11 23:37:59.118992"], ["updated_at", "2019-12-11 23:37:59.118992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.121448"], ["updated_at", "2019-12-11 23:37:59.121448"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1632” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.123364"], ["last_sign_in_at", "2019-12-11 23:37:59.123364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.123841"], ["id", 1920]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1632"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1632], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1632]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K0jq4uc8IHF9CGP9m/MN..V5aMJ15akEp/I4Sh0g9w5RvVL8954qm"], ["created_at", "2019-12-11 23:37:59.135385"], ["updated_at", "2019-12-11 23:37:59.135385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.137756"], ["updated_at", "2019-12-11 23:37:59.137756"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1633” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.139750"], ["last_sign_in_at", "2019-12-11 23:37:59.139750"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.140271"], ["id", 1921]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1633"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1633], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1633]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XYE6LWXJp7YPTYIMHZ10fOZy1NP1iSWOcpOPQv5ZmrhDPj.VgMyCC"], ["created_at", "2019-12-11 23:37:59.151412"], ["updated_at", "2019-12-11 23:37:59.151412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.153913"], ["updated_at", "2019-12-11 23:37:59.153913"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1634” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.155933"], ["last_sign_in_at", "2019-12-11 23:37:59.155933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.156448"], ["id", 1922]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1634"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cL9Y0n4ASNNue9Pmd.JG7.b3Qdpq8c27GynkpKFyDt7iWhkr1KHri"], ["created_at", "2019-12-11 23:37:59.165498"], ["updated_at", "2019-12-11 23:37:59.165498"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:37:59.167804"], ["updated_at", "2019-12-11 23:37:59.167804"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1635” for 127.0.0.1 at 2019-12-11 20:37:59 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:37:59.170236"], ["last_sign_in_at", "2019-12-11 23:37:59.170236"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:37:59.170954"], ["id", 1923]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1635"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ghJhXmh82wPkUQNSWydP9.YwiMLaZPd29ilnRouHgsO/HX557.RPK"], ["created_at", "2019-12-11 23:40:24.300101"], ["updated_at", "2019-12-11 23:40:24.300101"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.309383"], ["updated_at", "2019-12-11 23:40:24.309383"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1924], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered appointments/my_appointments.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 172ms (Views: 113.7ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$REu.xMA25QJUnB3N.Az.Y.w6McXtLdc/tYk.hDpX2uS.v8zYvnonO"], ["created_at", "2019-12-11 23:40:24.491937"], ["updated_at", "2019-12-11 23:40:24.491937"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.494253"], ["updated_at", "2019-12-11 23:40:24.494253"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1637], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1925], ["LIMIT", 1]]
SQL (1.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1925], ["room_id", 1637], ["created_at", "2019-12-11 23:40:24.534651"], ["updated_at", "2019-12-11 23:40:24.534651"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1925], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)

Appointment Exists (0.6ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 1925], ["id", 899], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$POMfij/.6Vo3gCbxcNaI7uESF1jDVMvAcOD3TwpAUdkNjRqF0lFvC"], ["created_at", "2019-12-11 23:40:24.551866"], ["updated_at", "2019-12-11 23:40:24.551866"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.554048"], ["updated_at", "2019-12-11 23:40:24.554048"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1638], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1926], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1926], ["room_id", 1638], ["created_at", "2019-12-11 23:40:24.558376"], ["updated_at", "2019-12-11 23:40:24.558376"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1926], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)

Appointment Exists (0.5ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 1926], ["id", 900], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1UZmMSAEomJznku6zJf2qeeydB1iGjCui599X/BzQqpGf6jfbsMjG"], ["created_at", "2019-12-11 23:40:24.571594"], ["updated_at", "2019-12-11 23:40:24.571594"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.574261"], ["updated_at", "2019-12-11 23:40:24.574261"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1639], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1927], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1927], ["room_id", 1639], ["created_at", "2019-12-11 23:40:24.578873"], ["updated_at", "2019-12-11 23:40:24.578873"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1927], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gOu544rRzQbR5EglQBBKxO1aOAt9KaHnrtYExC5s2imZvjJBKpnlm"], ["created_at", "2019-12-11 23:40:24.627523"], ["updated_at", "2019-12-11 23:40:24.627523"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.630008"], ["updated_at", "2019-12-11 23:40:24.630008"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1640"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1640], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1640')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)

Completed 200 OK in 108ms (Views: 74.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$niKo4KCUxN8xXWowMUO/ouyZNoXZqJbBkXyF59yF25r2JSf4oYWKu"], ["created_at", "2019-12-11 23:40:24.747142"], ["updated_at", "2019-12-11 23:40:24.747142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.749175"], ["updated_at", "2019-12-11 23:40:24.749175"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1641], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1929], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1929], ["room_id", 1641], ["created_at", "2019-12-11 23:40:24.753159"], ["updated_at", "2019-12-11 23:40:24.753159"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1641"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1641], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1641')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TL7PA0DS5G5OUe16DsVEnOfsq.npob8qkj927sK8etLJyYOnDDzFq"], ["created_at", "2019-12-11 23:40:24.763285"], ["updated_at", "2019-12-11 23:40:24.763285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.765368"], ["updated_at", "2019-12-11 23:40:24.765368"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1642], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1930], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1930], ["room_id", 1642], ["created_at", "2019-12-11 23:40:24.768904"], ["updated_at", "2019-12-11 23:40:24.768904"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1642"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1642], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1642')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SLk11kF/8MTS7XsP1Zsk4Oo8v0QMTEEpnFZFbebdySIIw6D7oxdAO"], ["created_at", "2019-12-11 23:40:24.779777"], ["updated_at", "2019-12-11 23:40:24.779777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.781727"], ["updated_at", "2019-12-11 23:40:24.781727"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1643], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1931], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1931], ["room_id", 1643], ["created_at", "2019-12-11 23:40:24.785423"], ["updated_at", "2019-12-11 23:40:24.785423"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1643"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1643], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1643')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SovD..2BbkfdCIHaBOoeruPkf0vfFFEPY8azcXFWdSKXfT3VnH/2u"], ["created_at", "2019-12-11 23:40:24.795158"], ["updated_at", "2019-12-11 23:40:24.795158"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:24.797202"], ["updated_at", "2019-12-11 23:40:24.797202"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1644], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1932], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1932], ["room_id", 1644], ["created_at", "2019-12-11 23:40:24.800537"], ["updated_at", "2019-12-11 23:40:24.800537"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1644"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1644], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1644')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 109ms (Views: 76.6ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CwLLg7wadiN0y3Fd8WsJFusLmq.TVxHo9HhThAYIG8ET7wGx2lJxq"], ["created_at", "2019-12-11 23:40:25.390404"], ["updated_at", "2019-12-11 23:40:25.390404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.392721"], ["updated_at", "2019-12-11 23:40:25.392721"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.409210"], ["last_sign_in_at", "2019-12-11 23:40:25.409210"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.409902"], ["id", 1933]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1645"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1645], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1933], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1933], ["room_id", 1645], ["created_at", "2019-12-11 23:40:25.417813"], ["updated_at", "2019-12-11 23:40:25.417813"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1645], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$miUcxhW.lmU7fNbKkv80t.PZAoFhAvUMtSm0.FHdu2M5AQgzG4M2S"], ["created_at", "2019-12-11 23:40:25.427003"], ["updated_at", "2019-12-11 23:40:25.427003"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.429299"], ["updated_at", "2019-12-11 23:40:25.429299"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.431797"], ["last_sign_in_at", "2019-12-11 23:40:25.431797"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.432443"], ["id", 1934]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1646"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1646], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1934], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1934], ["room_id", 1646], ["created_at", "2019-12-11 23:40:25.437546"], ["updated_at", "2019-12-11 23:40:25.437546"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$L7XUi.1al/UtwFvpWojfeOR3KATCFKQvQrrm7UATxIpwJnOhZFzD."], ["created_at", "2019-12-11 23:40:25.446818"], ["updated_at", "2019-12-11 23:40:25.446818"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.449022"], ["updated_at", "2019-12-11 23:40:25.449022"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.451582"], ["last_sign_in_at", "2019-12-11 23:40:25.451582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.452171"], ["id", 1935]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1647"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1647], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CaksgF2ydaHHMmapn9ZG8.mX5XSRIEx8YQw.8yuWiBxXBTMcsEWM."], ["created_at", "2019-12-11 23:40:25.461973"], ["updated_at", "2019-12-11 23:40:25.461973"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.464291"], ["updated_at", "2019-12-11 23:40:25.464291"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.466684"], ["last_sign_in_at", "2019-12-11 23:40:25.466684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.467194"], ["id", 1936]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1648"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2IliqjHFuXkRLKLL2GLJ6enE7MNUOQsuWMGXzkDcdc45xqX6NKt8y"], ["created_at", "2019-12-11 23:40:25.477352"], ["updated_at", "2019-12-11 23:40:25.477352"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.479571"], ["updated_at", "2019-12-11 23:40:25.479571"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1649], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1937], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1937], ["room_id", 1649], ["created_at", "2019-12-11 23:40:25.483419"], ["updated_at", "2019-12-11 23:40:25.483419"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1649” for 127.0.0.1 at 2019-12-11 20:40:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.485837"], ["last_sign_in_at", "2019-12-11 23:40:25.485837"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.486335"], ["id", 1937]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1649"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1649], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1649')
Rendered appointments/show.html.erb within layouts/application (21.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 404ms (Views: 385.9ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3QT9VPi6PL/rcjWntpPabeE/XFXZkvbbuXrMlEaOjibx4avoeasJ."], ["created_at", "2019-12-11 23:40:25.900048"], ["updated_at", "2019-12-11 23:40:25.900048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.902321"], ["updated_at", "2019-12-11 23:40:25.902321"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1650], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1938], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1938], ["room_id", 1650], ["created_at", "2019-12-11 23:40:25.906837"], ["updated_at", "2019-12-11 23:40:25.906837"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1650], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1938], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1938], ["room_id", 1650], ["created_at", "2019-12-11 23:40:25.911016"], ["updated_at", "2019-12-11 23:40:25.911016"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.913411"], ["last_sign_in_at", "2019-12-11 23:40:25.913411"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.913939"], ["id", 1938]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1938]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 22ms (Views: 4.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jk7IWhl7xdxkQDKW4j/IjOu.ELKcm.m1H8B1vQPwjNNd4XnTHnI/C"], ["created_at", "2019-12-11 23:40:25.944506"], ["updated_at", "2019-12-11 23:40:25.944506"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.946858"], ["updated_at", "2019-12-11 23:40:25.946858"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1651], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1939], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1939], ["room_id", 1651], ["created_at", "2019-12-11 23:40:25.950818"], ["updated_at", "2019-12-11 23:40:25.950818"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1651], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1939], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1939], ["room_id", 1651], ["created_at", "2019-12-11 23:40:25.954744"], ["updated_at", "2019-12-11 23:40:25.954744"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.957227"], ["last_sign_in_at", "2019-12-11 23:40:25.957227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.957779"], ["id", 1939]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1939]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$D3A5G3EPAEbjcK4qPT9ELuYT7vAtbqvjk.7CDQ2Krjp.9hMIQb3qS"], ["created_at", "2019-12-11 23:40:25.971091"], ["updated_at", "2019-12-11 23:40:25.971091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:25.973715"], ["updated_at", "2019-12-11 23:40:25.973715"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1652], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1940], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1940], ["room_id", 1652], ["created_at", "2019-12-11 23:40:25.977699"], ["updated_at", "2019-12-11 23:40:25.977699"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/913” for 127.0.0.1 at 2019-12-11 20:40:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.980104"], ["last_sign_in_at", "2019-12-11 23:40:25.980104"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.980677"], ["id", 1940]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"913"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 913], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 913]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RTeZr.q27cI8AMLSbIC9CeYmIb9R2HEKxzzWHL0iBTb7OTVIAMBqK"], ["created_at", "2019-12-11 23:40:25.995407"], ["updated_at", "2019-12-11 23:40:25.995407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:25.998227"], ["last_sign_in_at", "2019-12-11 23:40:25.998227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:25.998880"], ["id", 1941]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 36ms (Views: 19.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gzglAKeJEM1bXx8HybD3Uutf05rNca0/D4YpRACqLh2cg.dZtm.Ki"], ["created_at", "2019-12-11 23:40:26.044590"], ["updated_at", "2019-12-11 23:40:26.044590"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.046874"], ["updated_at", "2019-12-11 23:40:26.046874"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1653], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1942], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1942], ["room_id", 1653], ["created_at", "2019-12-11 23:40:26.050909"], ["updated_at", "2019-12-11 23:40:26.050909"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1653], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1942], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1942], ["room_id", 1653], ["created_at", "2019-12-11 23:40:26.054583"], ["updated_at", "2019-12-11 23:40:26.054583"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.057132"], ["last_sign_in_at", "2019-12-11 23:40:26.057132"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.057668"], ["id", 1942]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1653], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1942], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1942], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YwfmMRTkskeUbFEXVWEOtOHdHHEB1rD/dRhxhwmMNPgap0bULPMKC"], ["created_at", "2019-12-11 23:40:26.071072"], ["updated_at", "2019-12-11 23:40:26.071072"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.073757"], ["updated_at", "2019-12-11 23:40:26.073757"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1654], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1943], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1943], ["room_id", 1654], ["created_at", "2019-12-11 23:40:26.077965"], ["updated_at", "2019-12-11 23:40:26.077965"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1654], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1943], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1943], ["room_id", 1654], ["created_at", "2019-12-11 23:40:26.082546"], ["updated_at", "2019-12-11 23:40:26.082546"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.084805"], ["last_sign_in_at", "2019-12-11 23:40:26.084805"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.085321"], ["id", 1943]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1654], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1943], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1943], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D6jbK47IDlOB2tvhBi.7RetCaYWvwzNc.tUyaZbDNRTNgKbW2Rtoa"], ["created_at", "2019-12-11 23:40:26.101807"], ["updated_at", "2019-12-11 23:40:26.101807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.104203"], ["updated_at", "2019-12-11 23:40:26.104203"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1655], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1944], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1944], ["room_id", 1655], ["created_at", "2019-12-11 23:40:26.108641"], ["updated_at", "2019-12-11 23:40:26.108641"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1655], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1944], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1944], ["room_id", 1655], ["created_at", "2019-12-11 23:40:26.112646"], ["updated_at", "2019-12-11 23:40:26.112646"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.115036"], ["last_sign_in_at", "2019-12-11 23:40:26.115036"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.115562"], ["id", 1944]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n/hADJWD/grF74SkEwV1ruphQoP9SUSt0fv9PaD/JqgCvhLr8kb42"], ["created_at", "2019-12-11 23:40:26.127077"], ["updated_at", "2019-12-11 23:40:26.127077"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.129135"], ["updated_at", "2019-12-11 23:40:26.129135"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1656], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1945], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1945], ["room_id", 1656], ["created_at", "2019-12-11 23:40:26.132971"], ["updated_at", "2019-12-11 23:40:26.132971"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1656], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1945], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1945], ["room_id", 1656], ["created_at", "2019-12-11 23:40:26.137052"], ["updated_at", "2019-12-11 23:40:26.137052"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.139599"], ["last_sign_in_at", "2019-12-11 23:40:26.139599"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.140434"], ["id", 1945]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6X5bP5ox0bWCsrTTKQN2x.qs0LqNbGCNS5yZlKQ5yRsfPl.u6WtP2"], ["created_at", "2019-12-11 23:40:26.154140"], ["updated_at", "2019-12-11 23:40:26.154140"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.157241"], ["last_sign_in_at", "2019-12-11 23:40:26.157241"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.157837"], ["id", 1946]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 66ms (Views: 49.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AVzXmU9wEMHtQohAc8i/5um9Lfyi4t1zMrtZrbzmSsE3B7CkJSWkO"], ["created_at", "2019-12-11 23:40:26.236453"], ["updated_at", "2019-12-11 23:40:26.236453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.238791"], ["last_sign_in_at", "2019-12-11 23:40:26.238791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.239475"], ["id", 1947]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mxVxPKukHzAjBtFEPgAR0uRJfMFcltQdmakYova5D80q13I80WJ6e"], ["created_at", "2019-12-11 23:40:26.250048"], ["updated_at", "2019-12-11 23:40:26.250048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.252499"], ["last_sign_in_at", "2019-12-11 23:40:26.252499"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.253008"], ["id", 1948]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tgojvspuVTxJqzh3t9NRjuF0bdgAl/Ezge.DpYe8FJPuVATldCKte"], ["created_at", "2019-12-11 23:40:26.281240"], ["updated_at", "2019-12-11 23:40:26.281240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.283480"], ["last_sign_in_at", "2019-12-11 23:40:26.283480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.283959"], ["id", 1949]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/HT.TDTzQ2.FZCvlh3vFnemEeR.YLr8jE19pwdB5e0PUEIYhxCohK"], ["created_at", "2019-12-11 23:40:26.303839"], ["updated_at", "2019-12-11 23:40:26.303839"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.306436"], ["updated_at", "2019-12-11 23:40:26.306436"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1657” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.308952"], ["last_sign_in_at", "2019-12-11 23:40:26.308952"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.309506"], ["id", 1950]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1657"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1657], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3QHDqfM5ksKcgCjUPXHJ1uJlFDFAVNBWEvYVYtrSZvpJceIrKYstO"], ["created_at", "2019-12-11 23:40:26.337563"], ["updated_at", "2019-12-11 23:40:26.337563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.340130"], ["updated_at", "2019-12-11 23:40:26.340130"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1658” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.342282"], ["last_sign_in_at", "2019-12-11 23:40:26.342282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.342914"], ["id", 1951]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1658"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1658], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.352668"], ["updated_at", "2019-12-11 23:40:26.352668"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1659” for 127.0.0.1 at 2019-12-11 20:40:26 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1659"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N5gsopSrGU438Qn9YbVX/uzMLsfmmxeG/JCPgY2pIvATZNYtWU/Li"], ["created_at", "2019-12-11 23:40:26.363383"], ["updated_at", "2019-12-11 23:40:26.363383"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.365660"], ["updated_at", "2019-12-11 23:40:26.365660"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1660/edit” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.367803"], ["last_sign_in_at", "2019-12-11 23:40:26.367803"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.368378"], ["id", 1952]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1660"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1660], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 22ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q3O.BTBi1lo8uGdEo8xBEuvGv7LQD0/ARlXPjIrKg94wXHqLR6ZJy"], ["created_at", "2019-12-11 23:40:26.408032"], ["updated_at", "2019-12-11 23:40:26.408032"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.410494"], ["updated_at", "2019-12-11 23:40:26.410494"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1661/edit” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.412794"], ["last_sign_in_at", "2019-12-11 23:40:26.412794"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.413428"], ["id", 1953]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1661"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1661], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.425667"], ["updated_at", "2019-12-11 23:40:26.425667"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1662” for 127.0.0.1 at 2019-12-11 20:40:26 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1662"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jih3uzmRvzyEf8RU949mqO32za4rg9CoUcqRlfQHBA8t7sDWV8a3m"], ["created_at", "2019-12-11 23:40:26.436526"], ["updated_at", "2019-12-11 23:40:26.436526"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.439055"], ["last_sign_in_at", "2019-12-11 23:40:26.439055"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.439762"], ["id", 1954]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.443586"], ["updated_at", "2019-12-11 23:40:26.443586"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3sr1NRR/ggO.AgyycPwqvuYTnf1e.7Lw8G5XsZEGM1uGIoYg3cA0i"], ["created_at", "2019-12-11 23:40:26.452063"], ["updated_at", "2019-12-11 23:40:26.452063"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.454741"], ["last_sign_in_at", "2019-12-11 23:40:26.454741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.455239"], ["id", 1955]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.458948"], ["updated_at", "2019-12-11 23:40:26.458948"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p4.Q3HcLoEkc3qo4D9svCuw3/oe45PdxGIzdoQwOxmgjW4/sb8TNi"], ["created_at", "2019-12-11 23:40:26.467415"], ["updated_at", "2019-12-11 23:40:26.467415"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.469991"], ["last_sign_in_at", "2019-12-11 23:40:26.469991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.470509"], ["id", 1956]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/DHwEZjNnHVvkzMoVwyhKuN/50fCJrkTe16NDaosQ.Td0jM89.SO6"], ["created_at", "2019-12-11 23:40:26.481527"], ["updated_at", "2019-12-11 23:40:26.481527"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.484057"], ["last_sign_in_at", "2019-12-11 23:40:26.484057"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.484563"], ["id", 1957]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uEN1/FN0XjFN5sDmfJLJTeo4WiZrLpPxEFvlZLgiFkfZE1DmQfVRG"], ["created_at", "2019-12-11 23:40:26.496049"], ["updated_at", "2019-12-11 23:40:26.496049"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.498610"], ["last_sign_in_at", "2019-12-11 23:40:26.498610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.499110"], ["id", 1958]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RmuAWObthTYNHi.qKJ3w0ODo.bygNWLxr./.bdZA3N7N/XOpsdyau"], ["created_at", "2019-12-11 23:40:26.510034"], ["updated_at", "2019-12-11 23:40:26.510034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.512260"], ["updated_at", "2019-12-11 23:40:26.512260"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1665” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.514558"], ["last_sign_in_at", "2019-12-11 23:40:26.514558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.515046"], ["id", 1959]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1665"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1665], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:40:26.518708"], ["id", 1665]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1665 Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ojU8yPwVeiscLzMjFAXD2.qcCn3ks6gA3NAX.UgZDuKsB3vnaGGTe"], ["created_at", "2019-12-11 23:40:26.527347"], ["updated_at", "2019-12-11 23:40:26.527347"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.529685"], ["updated_at", "2019-12-11 23:40:26.529685"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1666” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.532382"], ["last_sign_in_at", "2019-12-11 23:40:26.532382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.533438"], ["id", 1960]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1666"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1666], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:40:26.538576"], ["id", 1666]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1666 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I57IYWOaOe3edfpyrCV9XelIG5oTiI79Y6JRSo.02p17jV3WbHNm."], ["created_at", "2019-12-11 23:40:26.546897"], ["updated_at", "2019-12-11 23:40:26.546897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.549063"], ["updated_at", "2019-12-11 23:40:26.549063"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1667” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.551514"], ["last_sign_in_at", "2019-12-11 23:40:26.551514"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.552055"], ["id", 1961]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1667"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1667], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ReO/fJAgDfEnnB7Ymlq11u3W4BtKbeGCZcLFVTbOlkXcibUrKwv56"], ["created_at", "2019-12-11 23:40:26.566522"], ["updated_at", "2019-12-11 23:40:26.566522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.568742"], ["updated_at", "2019-12-11 23:40:26.568742"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1668” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.571090"], ["last_sign_in_at", "2019-12-11 23:40:26.571090"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.571627"], ["id", 1962]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1668"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1668], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CYIZ5hJ6iNYdMd64/zHjaeSJ/XX.fiZ.vpsFtzyYTUgfexZ7DWAlK"], ["created_at", "2019-12-11 23:40:26.586507"], ["updated_at", "2019-12-11 23:40:26.586507"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.589434"], ["last_sign_in_at", "2019-12-11 23:40:26.589434"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.590340"], ["id", 1963]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.W3x5fMXlRXyDmtEGb7Y9.WLfhbAPkM9GXhbavXaqUbey82c81cqq"], ["created_at", "2019-12-11 23:40:26.600516"], ["updated_at", "2019-12-11 23:40:26.600516"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.602826"], ["updated_at", "2019-12-11 23:40:26.602826"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1669” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.604860"], ["last_sign_in_at", "2019-12-11 23:40:26.604860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.605394"], ["id", 1964]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1669"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1669], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1669]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EJaF/v3Tu/NOOZUbAsq86eNiNKaUVVHmOVbnSiF/8weviz7rboaAW"], ["created_at", "2019-12-11 23:40:26.616845"], ["updated_at", "2019-12-11 23:40:26.616845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.619027"], ["updated_at", "2019-12-11 23:40:26.619027"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1670” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.620947"], ["last_sign_in_at", "2019-12-11 23:40:26.620947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.621521"], ["id", 1965]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1670"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1670], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1670]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jkbbM5YL2oJtqXZl/YmOneaVCPryCiH4.tlLBO0R33YlITpqZDa4."], ["created_at", "2019-12-11 23:40:26.633733"], ["updated_at", "2019-12-11 23:40:26.633733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.636035"], ["updated_at", "2019-12-11 23:40:26.636035"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1671” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.637998"], ["last_sign_in_at", "2019-12-11 23:40:26.637998"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.638563"], ["id", 1966]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1671"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xxOKW5Vu5979q52A12pGsukAm5jZbRMKCEv3kgvzlRfrKoZ5x54sy"], ["created_at", "2019-12-11 23:40:26.648101"], ["updated_at", "2019-12-11 23:40:26.648101"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:26.650387"], ["updated_at", "2019-12-11 23:40:26.650387"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1672” for 127.0.0.1 at 2019-12-11 20:40:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:26.652219"], ["last_sign_in_at", "2019-12-11 23:40:26.652219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:26.652715"], ["id", 1967]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1672"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yesPICHr6j/oZS.2EQapHeqWAHx5Wa2BRpTxnPeE2kDulT1WECSP2"], ["created_at", "2019-12-11 23:40:48.533395"], ["updated_at", "2019-12-11 23:40:48.533395"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.542697"], ["updated_at", "2019-12-11 23:40:48.542697"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1968], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 173ms (Views: 113.3ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fdAwSb5AFhz9fYKILp0yVuxyaJFF/PHEnmEI25s0OXRH96N8/9X8W"], ["created_at", "2019-12-11 23:40:48.727339"], ["updated_at", "2019-12-11 23:40:48.727339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.730324"], ["updated_at", "2019-12-11 23:40:48.730324"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1674], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1969], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1969], ["room_id", 1674], ["created_at", "2019-12-11 23:40:48.770501"], ["updated_at", "2019-12-11 23:40:48.770501"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1969], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)

Appointment Exists (0.6ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 1969], ["id", 922], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$U0LqIuRPb4RgdgLPJkhhIemsKOPqPIwoaOJczIGUU4tc.pDDFd00K"], ["created_at", "2019-12-11 23:40:48.786111"], ["updated_at", "2019-12-11 23:40:48.786111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.788468"], ["updated_at", "2019-12-11 23:40:48.788468"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1675], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1970], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1970], ["room_id", 1675], ["created_at", "2019-12-11 23:40:48.793028"], ["updated_at", "2019-12-11 23:40:48.793028"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1970], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)

Appointment Exists (0.3ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 1970], ["id", 923], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6GaLuyW9IUbvc.8HBTsDKeptVeHEeDwn2c4Qor//aTTvsCxphBw4W"], ["created_at", "2019-12-11 23:40:48.804625"], ["updated_at", "2019-12-11 23:40:48.804625"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.807034"], ["updated_at", "2019-12-11 23:40:48.807034"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1676], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1971], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1971], ["room_id", 1676], ["created_at", "2019-12-11 23:40:48.811418"], ["updated_at", "2019-12-11 23:40:48.811418"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 1971], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$phGWPFA1vMSEorbVjs7f6Ooeih6u9lZkFuxs08IzXrTGNTqLlgFDC"], ["created_at", "2019-12-11 23:40:48.853897"], ["updated_at", "2019-12-11 23:40:48.853897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.856224"], ["updated_at", "2019-12-11 23:40:48.856224"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1677"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1677], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1677')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)

Completed 200 OK in 110ms (Views: 75.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9bhE9JDspoCBsqGEaAKJ6e1JbsvbHPyuevoXZx7P3tYiVfBrHviU2"], ["created_at", "2019-12-11 23:40:48.975585"], ["updated_at", "2019-12-11 23:40:48.975585"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.977871"], ["updated_at", "2019-12-11 23:40:48.977871"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1678], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1973], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1973], ["room_id", 1678], ["created_at", "2019-12-11 23:40:48.981886"], ["updated_at", "2019-12-11 23:40:48.981886"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1678"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1678], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1678')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$A3cOL27x8HuDey5uWAPS/.1CW0DP0GSgFedNoj0giT3W7czB.unae"], ["created_at", "2019-12-11 23:40:48.993179"], ["updated_at", "2019-12-11 23:40:48.993179"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:48.995490"], ["updated_at", "2019-12-11 23:40:48.995490"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1679], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1974], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1974], ["room_id", 1679], ["created_at", "2019-12-11 23:40:48.999342"], ["updated_at", "2019-12-11 23:40:48.999342"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1679"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1679], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1679')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dY266hzrJgCRBm21HCGOYuK2KyF2txDGw7GVHVp9bSKZATSNf3kTa"], ["created_at", "2019-12-11 23:40:49.011831"], ["updated_at", "2019-12-11 23:40:49.011831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.014617"], ["updated_at", "2019-12-11 23:40:49.014617"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1680], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1975], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1975], ["room_id", 1680], ["created_at", "2019-12-11 23:40:49.018595"], ["updated_at", "2019-12-11 23:40:49.018595"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1680"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1680], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1680')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$v1.PaqbHDwymjC5nc9jyoOWYMB4NBNr3a2oalA9D7zNounq0b2g0K"], ["created_at", "2019-12-11 23:40:49.029183"], ["updated_at", "2019-12-11 23:40:49.029183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.031503"], ["updated_at", "2019-12-11 23:40:49.031503"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1681], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1976], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1976], ["room_id", 1681], ["created_at", "2019-12-11 23:40:49.035380"], ["updated_at", "2019-12-11 23:40:49.035380"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1681"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1681], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1681')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 110ms (Views: 77.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dP85MVChyzQ0yT2rSxBsmOlLlKI19.KC88nwM7/5.RhmlHTGlkFNi"], ["created_at", "2019-12-11 23:40:49.621314"], ["updated_at", "2019-12-11 23:40:49.621314"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.623462"], ["updated_at", "2019-12-11 23:40:49.623462"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:49.643553"], ["last_sign_in_at", "2019-12-11 23:40:49.643553"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:49.644206"], ["id", 1977]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1682"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1682], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1977], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1977], ["room_id", 1682], ["created_at", "2019-12-11 23:40:49.651636"], ["updated_at", "2019-12-11 23:40:49.651636"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1682], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$v5.IccE5CSeZhgvfc6fOOesFiUaS1tAXC3SajqPylGC04us98IdB2"], ["created_at", "2019-12-11 23:40:49.660610"], ["updated_at", "2019-12-11 23:40:49.660610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.662896"], ["updated_at", "2019-12-11 23:40:49.662896"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:49.665546"], ["last_sign_in_at", "2019-12-11 23:40:49.665546"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:49.666170"], ["id", 1978]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1683"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1683], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1978], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1978], ["room_id", 1683], ["created_at", "2019-12-11 23:40:49.671302"], ["updated_at", "2019-12-11 23:40:49.671302"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dZKm.dw77mpG6Mmu7Bk3ruuNf9JHMx5ECXMXBJ9Y1BMpvXJLBj1xi"], ["created_at", "2019-12-11 23:40:49.680643"], ["updated_at", "2019-12-11 23:40:49.680643"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.682818"], ["updated_at", "2019-12-11 23:40:49.682818"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:49.685282"], ["last_sign_in_at", "2019-12-11 23:40:49.685282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:49.685818"], ["id", 1979]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1684"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1684], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$J74pa/vujaOWLB4b801P1OZ.zqaOBI97hAT6tnS34FytGayIoTzra"], ["created_at", "2019-12-11 23:40:49.695109"], ["updated_at", "2019-12-11 23:40:49.695109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.697514"], ["updated_at", "2019-12-11 23:40:49.697514"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:40:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:49.699888"], ["last_sign_in_at", "2019-12-11 23:40:49.699888"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:49.700491"], ["id", 1980]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1685"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Y01GAKMi/wsG7GKpA1L3NecDu09QbOiJvKMXBcwPkVs3p62MDI5Yi"], ["created_at", "2019-12-11 23:40:49.710814"], ["updated_at", "2019-12-11 23:40:49.710814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:49.712719"], ["updated_at", "2019-12-11 23:40:49.712719"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1686], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1981], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1981], ["room_id", 1686], ["created_at", "2019-12-11 23:40:49.716427"], ["updated_at", "2019-12-11 23:40:49.716427"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1686” for 127.0.0.1 at 2019-12-11 20:40:49 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:49.718613"], ["last_sign_in_at", "2019-12-11 23:40:49.718613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:49.719058"], ["id", 1981]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1686"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1686], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1686')
Rendered appointments/show.html.erb within layouts/application (21.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 401ms (Views: 383.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AqhdLBmsUD4ortoQzckLDOVgmRTSr9okWVeOXW4.URei.aLQmOF52"], ["created_at", "2019-12-11 23:40:50.129835"], ["updated_at", "2019-12-11 23:40:50.129835"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.132261"], ["updated_at", "2019-12-11 23:40:50.132261"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1687], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1982], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1982], ["room_id", 1687], ["created_at", "2019-12-11 23:40:50.136204"], ["updated_at", "2019-12-11 23:40:50.136204"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1687], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1982], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1982], ["room_id", 1687], ["created_at", "2019-12-11 23:40:50.140218"], ["updated_at", "2019-12-11 23:40:50.140218"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.142965"], ["last_sign_in_at", "2019-12-11 23:40:50.142965"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.143475"], ["id", 1982]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1982]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 4.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tMejxS.tkV7OMJPD2ypJtuXBzUoy2/opSd6mE7nWPXpDIt0o5GjdG"], ["created_at", "2019-12-11 23:40:50.174229"], ["updated_at", "2019-12-11 23:40:50.174229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.176532"], ["updated_at", "2019-12-11 23:40:50.176532"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1688], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1983], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1983], ["room_id", 1688], ["created_at", "2019-12-11 23:40:50.180565"], ["updated_at", "2019-12-11 23:40:50.180565"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1688], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1983], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1983], ["room_id", 1688], ["created_at", "2019-12-11 23:40:50.184404"], ["updated_at", "2019-12-11 23:40:50.184404"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.186812"], ["last_sign_in_at", "2019-12-11 23:40:50.186812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.187350"], ["id", 1983]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 1983]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HxMXkuplPv8zwNYliA/jJeNpGi7B2OH/vSVOI6Rt9QpMnlM/i2IGS"], ["created_at", "2019-12-11 23:40:50.201312"], ["updated_at", "2019-12-11 23:40:50.201312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.203433"], ["updated_at", "2019-12-11 23:40:50.203433"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1689], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1984], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1984], ["room_id", 1689], ["created_at", "2019-12-11 23:40:50.208410"], ["updated_at", "2019-12-11 23:40:50.208410"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/936” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.210823"], ["last_sign_in_at", "2019-12-11 23:40:50.210823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.211355"], ["id", 1984]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"936"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 936], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 936]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$td.tJku.EWKChfiG3l9XAehSsNsiIY3tUcbMavZT3QaAPBLw9a96G"], ["created_at", "2019-12-11 23:40:50.226279"], ["updated_at", "2019-12-11 23:40:50.226279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.228976"], ["last_sign_in_at", "2019-12-11 23:40:50.228976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.229515"], ["id", 1985]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 37ms (Views: 19.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lY1MxIJ3bYy1a2Ymh2whMO8ecxRw1z1m4mV6eM4IG9h3ubTio/qma"], ["created_at", "2019-12-11 23:40:50.276658"], ["updated_at", "2019-12-11 23:40:50.276658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.278805"], ["updated_at", "2019-12-11 23:40:50.278805"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1690], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1986], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1986], ["room_id", 1690], ["created_at", "2019-12-11 23:40:50.282745"], ["updated_at", "2019-12-11 23:40:50.282745"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1690], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1986], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1986], ["room_id", 1690], ["created_at", "2019-12-11 23:40:50.286687"], ["updated_at", "2019-12-11 23:40:50.286687"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.288931"], ["last_sign_in_at", "2019-12-11 23:40:50.288931"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.289505"], ["id", 1986]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1690], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1986], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1986], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZYZk7sx5nUrJY1QVSjS8WuYdQUG6lXgsYG65n8BAPVQF6sf/BFzMS"], ["created_at", "2019-12-11 23:40:50.303379"], ["updated_at", "2019-12-11 23:40:50.303379"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.305595"], ["updated_at", "2019-12-11 23:40:50.305595"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1691], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1987], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1987], ["room_id", 1691], ["created_at", "2019-12-11 23:40:50.309896"], ["updated_at", "2019-12-11 23:40:50.309896"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1691], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1987], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1987], ["room_id", 1691], ["created_at", "2019-12-11 23:40:50.313915"], ["updated_at", "2019-12-11 23:40:50.313915"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.316227"], ["last_sign_in_at", "2019-12-11 23:40:50.316227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.316732"], ["id", 1987]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1691], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1987], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1987], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UUyUjE2K.sGns9kdG8JveOY6Cno8fsR.WeQxx.kRRSwWoH9S17z4m"], ["created_at", "2019-12-11 23:40:50.331607"], ["updated_at", "2019-12-11 23:40:50.331607"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.333900"], ["updated_at", "2019-12-11 23:40:50.333900"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1692], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1988], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1988], ["room_id", 1692], ["created_at", "2019-12-11 23:40:50.337931"], ["updated_at", "2019-12-11 23:40:50.337931"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1692], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1988], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1988], ["room_id", 1692], ["created_at", "2019-12-11 23:40:50.342481"], ["updated_at", "2019-12-11 23:40:50.342481"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.344972"], ["last_sign_in_at", "2019-12-11 23:40:50.344972"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.345525"], ["id", 1988]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4LoH0bSeE8j1n0nBT87aHeV3RC5D3cOvajQPz6cxzjHnT9h9t/mCi"], ["created_at", "2019-12-11 23:40:50.356992"], ["updated_at", "2019-12-11 23:40:50.356992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.359677"], ["updated_at", "2019-12-11 23:40:50.359677"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1693], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1989], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 1989], ["room_id", 1693], ["created_at", "2019-12-11 23:40:50.363693"], ["updated_at", "2019-12-11 23:40:50.363693"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1693], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1989], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 1989], ["room_id", 1693], ["created_at", "2019-12-11 23:40:50.367743"], ["updated_at", "2019-12-11 23:40:50.367743"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.370080"], ["last_sign_in_at", "2019-12-11 23:40:50.370080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.370640"], ["id", 1989]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vVdn9sNr9jbpZxEI07F7QufMLwEkr.XRx1.69L74bfr3OBJDSoT9q"], ["created_at", "2019-12-11 23:40:50.384767"], ["updated_at", "2019-12-11 23:40:50.384767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.387329"], ["last_sign_in_at", "2019-12-11 23:40:50.387329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.387860"], ["id", 1990]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 67ms (Views: 49.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cw.1MYbIz3PbO7eYNSKVPuB1wjG6HYfspQzjebDxN/xDUkcW27nbq"], ["created_at", "2019-12-11 23:40:50.467207"], ["updated_at", "2019-12-11 23:40:50.467207"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.469534"], ["last_sign_in_at", "2019-12-11 23:40:50.469534"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.470011"], ["id", 1991]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MFbVUGP8dH/CukZAMCLJPuIaO8H7EKU7.NsmAWxJf/vPMv7AyIef."], ["created_at", "2019-12-11 23:40:50.479971"], ["updated_at", "2019-12-11 23:40:50.479971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.482773"], ["last_sign_in_at", "2019-12-11 23:40:50.482773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.483320"], ["id", 1992]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vgbgFI2U1RjEnrY4gDRwrOh/1tkVl.qsSYkQ1Oj0I6jn3p9WLysdi"], ["created_at", "2019-12-11 23:40:50.511705"], ["updated_at", "2019-12-11 23:40:50.511705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.513950"], ["last_sign_in_at", "2019-12-11 23:40:50.513950"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.514457"], ["id", 1993]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sgNf/OMiTqxI57vqPRcm5e.iJW4iuq6q0Ss8/Zs2Ps0z1ZHtCMpFa"], ["created_at", "2019-12-11 23:40:50.533175"], ["updated_at", "2019-12-11 23:40:50.533175"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.535295"], ["updated_at", "2019-12-11 23:40:50.535295"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1694” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.537322"], ["last_sign_in_at", "2019-12-11 23:40:50.537322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.537789"], ["id", 1994]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1694"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1694], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$44c5sfRrrPapF4wbZbEMG./S2T.yT7eVetBvZ3KofRsOWekk2Wix2"], ["created_at", "2019-12-11 23:40:50.566410"], ["updated_at", "2019-12-11 23:40:50.566410"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.568839"], ["updated_at", "2019-12-11 23:40:50.568839"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1695” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.571116"], ["last_sign_in_at", "2019-12-11 23:40:50.571116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.571782"], ["id", 1995]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1695"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1695], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.582175"], ["updated_at", "2019-12-11 23:40:50.582175"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1696” for 127.0.0.1 at 2019-12-11 20:40:50 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1696"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pISBOd3f9CksftE5h7X4yOzmgiXGwmP0RqUCVk6n/h8nqaQ6JcnDe"], ["created_at", "2019-12-11 23:40:50.593313"], ["updated_at", "2019-12-11 23:40:50.593313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.595513"], ["updated_at", "2019-12-11 23:40:50.595513"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1697/edit” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.597779"], ["last_sign_in_at", "2019-12-11 23:40:50.597779"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.598382"], ["id", 1996]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1697"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1697], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JZ7j7aDgLTJVzE0m96CaPuk0uZPyR7I6UXqvZpn2nOpOP/TSiIHle"], ["created_at", "2019-12-11 23:40:50.628236"], ["updated_at", "2019-12-11 23:40:50.628236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.630643"], ["updated_at", "2019-12-11 23:40:50.630643"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1698/edit” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.632971"], ["last_sign_in_at", "2019-12-11 23:40:50.632971"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.633581"], ["id", 1997]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1698"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1698], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.651972"], ["updated_at", "2019-12-11 23:40:50.651972"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1699” for 127.0.0.1 at 2019-12-11 20:40:50 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1699"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mzKHRYwu121H2.0QawxccO1EJXx7eaL1ZENhXyaKGU0qsZrK4dn1i"], ["created_at", "2019-12-11 23:40:50.663419"], ["updated_at", "2019-12-11 23:40:50.663419"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.665893"], ["last_sign_in_at", "2019-12-11 23:40:50.665893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.666395"], ["id", 1998]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.670043"], ["updated_at", "2019-12-11 23:40:50.670043"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5xUoifBxwZPR3Q94DyXoGOJo8RrzrjNd4FGToLRkSqd4O2Dq4c5He"], ["created_at", "2019-12-11 23:40:50.679132"], ["updated_at", "2019-12-11 23:40:50.679132"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.681772"], ["last_sign_in_at", "2019-12-11 23:40:50.681772"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.682334"], ["id", 1999]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.685527"], ["updated_at", "2019-12-11 23:40:50.685527"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XX5OEOtmq.YZiCGUU2By7eZIIwe01Siei/Uq.p13qw0nH9f9csK3y"], ["created_at", "2019-12-11 23:40:50.694099"], ["updated_at", "2019-12-11 23:40:50.694099"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.696714"], ["last_sign_in_at", "2019-12-11 23:40:50.696714"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.697223"], ["id", 2000]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sPtdCskZxzQYK0NDY.csn.rSY4z.IwqJFLbHfCzATT7zpD/IJczVm"], ["created_at", "2019-12-11 23:40:50.708942"], ["updated_at", "2019-12-11 23:40:50.708942"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.711528"], ["last_sign_in_at", "2019-12-11 23:40:50.711528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.712036"], ["id", 2001]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9d5L/f7n9/0IFoRBJ94.n.UfsYbJyefID5C.kdV.x7lb3GOqGdAxq"], ["created_at", "2019-12-11 23:40:50.722853"], ["updated_at", "2019-12-11 23:40:50.722853"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.725936"], ["last_sign_in_at", "2019-12-11 23:40:50.725936"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.726495"], ["id", 2002]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WDzwDvCh2v5lbk7I5egEb.hIG9ePftxf8PH6OJDfb6PeNXNYm1gK6"], ["created_at", "2019-12-11 23:40:50.737195"], ["updated_at", "2019-12-11 23:40:50.737195"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.739537"], ["updated_at", "2019-12-11 23:40:50.739537"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1702” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.742133"], ["last_sign_in_at", "2019-12-11 23:40:50.742133"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.742656"], ["id", 2003]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1702"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1702], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:40:50.746535"], ["id", 1702]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1702 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SHxzLRTXf5Ef4WUkUfVK6OU/C2kbDt8dpw8QajuymScKRzID3eSSe"], ["created_at", "2019-12-11 23:40:50.754924"], ["updated_at", "2019-12-11 23:40:50.754924"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.757581"], ["updated_at", "2019-12-11 23:40:50.757581"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1703” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.760181"], ["last_sign_in_at", "2019-12-11 23:40:50.760181"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.760791"], ["id", 2004]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1703"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1703], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:40:50.764708"], ["id", 1703]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1703 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cm0Ii/OeaCJBx3d6.IodEO19RSPFRvItMENcQF2zUZag7xdbfhyAi"], ["created_at", "2019-12-11 23:40:50.773299"], ["updated_at", "2019-12-11 23:40:50.773299"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.775848"], ["updated_at", "2019-12-11 23:40:50.775848"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1704” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.778406"], ["last_sign_in_at", "2019-12-11 23:40:50.778406"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.778915"], ["id", 2005]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1704"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1704], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AsIWIAHlsp4d/CZQesv26.7I49ltA8rV219nhdsf8utc8w3neNx.a"], ["created_at", "2019-12-11 23:40:50.793542"], ["updated_at", "2019-12-11 23:40:50.793542"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.795840"], ["updated_at", "2019-12-11 23:40:50.795840"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1705” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.798219"], ["last_sign_in_at", "2019-12-11 23:40:50.798219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.798751"], ["id", 2006]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1705"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1705], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b4T4TqVVEbqHJpg6BEMVz.R0oHVrh1zxyoIU56hUY9RuJvZEq1trS"], ["created_at", "2019-12-11 23:40:50.813335"], ["updated_at", "2019-12-11 23:40:50.813335"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.815982"], ["last_sign_in_at", "2019-12-11 23:40:50.815982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.816506"], ["id", 2007]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fh0WiKg.SYKuZJKWznNpXuq0ACw9JODG2rnEY3ZbCXMst96oUlW/K"], ["created_at", "2019-12-11 23:40:50.827156"], ["updated_at", "2019-12-11 23:40:50.827156"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.829592"], ["updated_at", "2019-12-11 23:40:50.829592"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1706” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.831516"], ["last_sign_in_at", "2019-12-11 23:40:50.831516"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.832010"], ["id", 2008]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1706"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1706], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1706]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6T/ChSx9CYo60kx1bkuTZ.gJvp6Y3lzvCiwGhTWP5PSLm.t6WcDTe"], ["created_at", "2019-12-11 23:40:50.843324"], ["updated_at", "2019-12-11 23:40:50.843324"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.845551"], ["updated_at", "2019-12-11 23:40:50.845551"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1707” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.847522"], ["last_sign_in_at", "2019-12-11 23:40:50.847522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.848086"], ["id", 2009]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1707"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1707], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1707]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Z0ctLsYJUrHYxrvpUX6UNu2zCuQI.OJzRYJ9wHNpGVnl7G2BFhAse"], ["created_at", "2019-12-11 23:40:50.859563"], ["updated_at", "2019-12-11 23:40:50.859563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.861751"], ["updated_at", "2019-12-11 23:40:50.861751"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1708” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.863734"], ["last_sign_in_at", "2019-12-11 23:40:50.863734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.864240"], ["id", 2010]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1708"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aFtbAjVXeRi.U9uH/LaKb.Ua2hokUpnNg.NlL3Xs0VUWoPoLnycvG"], ["created_at", "2019-12-11 23:40:50.875426"], ["updated_at", "2019-12-11 23:40:50.875426"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:40:50.878173"], ["updated_at", "2019-12-11 23:40:50.878173"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1709” for 127.0.0.1 at 2019-12-11 20:40:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:40:50.880408"], ["last_sign_in_at", "2019-12-11 23:40:50.880408"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:40:50.880905"], ["id", 2011]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1709"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7D6Utv1bxH/w7w2kYVQN2uM4r3O9EX7CTqTwjWcQTvYqglAJiUKQa"], ["created_at", "2019-12-11 23:41:49.763275"], ["updated_at", "2019-12-11 23:41:49.763275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:49.772328"], ["updated_at", "2019-12-11 23:41:49.772328"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2012], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 173ms (Views: 116.2ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BuzSvfdFVj6XbprNF2MhS.4j1pJYuXDT7vYa4QIGr1RjGnshhKVIS"], ["created_at", "2019-12-11 23:41:49.955385"], ["updated_at", "2019-12-11 23:41:49.955385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:49.957627"], ["updated_at", "2019-12-11 23:41:49.957627"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1711], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2013], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2013], ["room_id", 1711], ["created_at", "2019-12-11 23:41:49.997020"], ["updated_at", "2019-12-11 23:41:49.997020"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2013], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)

Appointment Exists (0.6ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2013], ["id", 945], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Aqhd3iz7aVhdfga.Jy5e8OlYmWCjWRYWuNfHNwmnkORe6LXthaUw2"], ["created_at", "2019-12-11 23:41:50.012448"], ["updated_at", "2019-12-11 23:41:50.012448"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.014464"], ["updated_at", "2019-12-11 23:41:50.014464"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1712], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2014], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2014], ["room_id", 1712], ["created_at", "2019-12-11 23:41:50.018173"], ["updated_at", "2019-12-11 23:41:50.018173"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2014], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)

Appointment Exists (0.3ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2014], ["id", 946], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cp4gO6LTcnTZZhwCN4ZI1.yJoSukMRMuZa.nbPKBaIi28kfcgYU0q"], ["created_at", "2019-12-11 23:41:50.030339"], ["updated_at", "2019-12-11 23:41:50.030339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.032740"], ["updated_at", "2019-12-11 23:41:50.032740"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1713], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2015], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 3], ["user_id", 2015], ["room_id", 1713], ["created_at", "2019-12-11 23:41:50.036837"], ["updated_at", "2019-12-11 23:41:50.036837"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2015], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$afdZcqDM3bx5PTTy/ZmBOOq9N45Sp1qpMVyRsJvy5HgE7lqIPzh6C"], ["created_at", "2019-12-11 23:41:50.080435"], ["updated_at", "2019-12-11 23:41:50.080435"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.082822"], ["updated_at", "2019-12-11 23:41:50.082822"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1714"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1714], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1714')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)

Completed 200 OK in 112ms (Views: 78.1ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rtmzb9m0KgWbKT9K4HN2IO8MKC2uoPERT3BntgHK.lsA7Ppxm3abe"], ["created_at", "2019-12-11 23:41:50.203879"], ["updated_at", "2019-12-11 23:41:50.203879"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.206108"], ["updated_at", "2019-12-11 23:41:50.206108"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1715], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2017], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2017], ["room_id", 1715], ["created_at", "2019-12-11 23:41:50.210777"], ["updated_at", "2019-12-11 23:41:50.210777"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1715"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1715], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1715')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0I6N8jvjaABBIIjSmt5/pOK8kNrD13FfrqQ83s1mCVpQnfHp9Vgai"], ["created_at", "2019-12-11 23:41:50.221364"], ["updated_at", "2019-12-11 23:41:50.221364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.223665"], ["updated_at", "2019-12-11 23:41:50.223665"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1716], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2018], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2018], ["room_id", 1716], ["created_at", "2019-12-11 23:41:50.228581"], ["updated_at", "2019-12-11 23:41:50.228581"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1716"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1716], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1716')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$atKv9szKQyuCFoBgqWKG4ekrd7v1CxRra19dkY6QTgqrKntcFgwpW"], ["created_at", "2019-12-11 23:41:50.239782"], ["updated_at", "2019-12-11 23:41:50.239782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.242210"], ["updated_at", "2019-12-11 23:41:50.242210"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1717], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2019], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2019], ["room_id", 1717], ["created_at", "2019-12-11 23:41:50.246796"], ["updated_at", "2019-12-11 23:41:50.246796"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1717"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1717], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1717')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sSuZ19b1qfmL.RrS0MbfT.1iGdxEFzGywSle7IsVoX5AbSyMIXUSS"], ["created_at", "2019-12-11 23:41:50.256714"], ["updated_at", "2019-12-11 23:41:50.256714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.259132"], ["updated_at", "2019-12-11 23:41:50.259132"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1718], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2020], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2020], ["room_id", 1718], ["created_at", "2019-12-11 23:41:50.263470"], ["updated_at", "2019-12-11 23:41:50.263470"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1718"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1718], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1718')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 109ms (Views: 77.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1mTQUZmFSUHXlr.kZ3ys2uagm.1BXCOinVQHK/OBjXVf4aMTD8M2S"], ["created_at", "2019-12-11 23:41:50.848270"], ["updated_at", "2019-12-11 23:41:50.848270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.850536"], ["updated_at", "2019-12-11 23:41:50.850536"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:41:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:50.866940"], ["last_sign_in_at", "2019-12-11 23:41:50.866940"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:50.867793"], ["id", 2021]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1719"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1719], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2021], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2021], ["room_id", 1719], ["created_at", "2019-12-11 23:41:50.877344"], ["updated_at", "2019-12-11 23:41:50.877344"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1719], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$L07EBDI3JohyEb0g8CeVC.8HakV9ri6PK.bxYTqBucGe2zfZpHRvO"], ["created_at", "2019-12-11 23:41:50.886638"], ["updated_at", "2019-12-11 23:41:50.886638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.889085"], ["updated_at", "2019-12-11 23:41:50.889085"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:41:50 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:50.891600"], ["last_sign_in_at", "2019-12-11 23:41:50.891600"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:50.892374"], ["id", 2022]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1720"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1720], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2022], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2022], ["room_id", 1720], ["created_at", "2019-12-11 23:41:50.897203"], ["updated_at", "2019-12-11 23:41:50.897203"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CSN.X86X5t0SzWoLlPQqBeKFyLcFCeZQTpOZ.0hOqmeI8x1Pyr2sO"], ["created_at", "2019-12-11 23:41:50.906092"], ["updated_at", "2019-12-11 23:41:50.906092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.908425"], ["updated_at", "2019-12-11 23:41:50.908425"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:41:50 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:50.912182"], ["last_sign_in_at", "2019-12-11 23:41:50.912182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:50.913254"], ["id", 2023]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1721"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1721], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ICCVJL0F4tDtvBPJFvFqUuHCS4VYZ8wCaxEs9p.nCnjnaAB2ZJaFi"], ["created_at", "2019-12-11 23:41:50.922109"], ["updated_at", "2019-12-11 23:41:50.922109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.924548"], ["updated_at", "2019-12-11 23:41:50.924548"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:41:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:50.927650"], ["last_sign_in_at", "2019-12-11 23:41:50.927650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:50.928293"], ["id", 2024]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1722"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SdPJQeY3tMdXGumI4CQLuOz9yBxjZmOONcD6voGIkA4Za//Sqsvza"], ["created_at", "2019-12-11 23:41:50.939024"], ["updated_at", "2019-12-11 23:41:50.939024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:50.941502"], ["updated_at", "2019-12-11 23:41:50.941502"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1723], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2025], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2025], ["room_id", 1723], ["created_at", "2019-12-11 23:41:50.946177"], ["updated_at", "2019-12-11 23:41:50.946177"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1723” for 127.0.0.1 at 2019-12-11 20:41:50 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:50.948790"], ["last_sign_in_at", "2019-12-11 23:41:50.948790"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:50.949346"], ["id", 2025]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1723"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1723], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1723')
Rendered appointments/show.html.erb within layouts/application (21.1ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 408ms (Views: 389.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PgPNa8OVd20sV8ZuJcvkW.OUj2TvYAaCy96VDNIu7Wz5SXSVjmaNO"], ["created_at", "2019-12-11 23:41:51.367756"], ["updated_at", "2019-12-11 23:41:51.367756"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.370112"], ["updated_at", "2019-12-11 23:41:51.370112"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1724], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2026], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2026], ["room_id", 1724], ["created_at", "2019-12-11 23:41:51.374136"], ["updated_at", "2019-12-11 23:41:51.374136"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1724], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2026], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2026], ["room_id", 1724], ["created_at", "2019-12-11 23:41:51.378683"], ["updated_at", "2019-12-11 23:41:51.378683"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.381087"], ["last_sign_in_at", "2019-12-11 23:41:51.381087"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.381576"], ["id", 2026]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2026]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 4.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VbJ3fu0zlHJ868WegLCHHOZ7jfQImhxCYcpWplvyX/zIbRO16o1va"], ["created_at", "2019-12-11 23:41:51.411433"], ["updated_at", "2019-12-11 23:41:51.411433"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.413478"], ["updated_at", "2019-12-11 23:41:51.413478"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1725], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2027], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2027], ["room_id", 1725], ["created_at", "2019-12-11 23:41:51.416979"], ["updated_at", "2019-12-11 23:41:51.416979"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1725], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2027], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2027], ["room_id", 1725], ["created_at", "2019-12-11 23:41:51.420434"], ["updated_at", "2019-12-11 23:41:51.420434"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.422596"], ["last_sign_in_at", "2019-12-11 23:41:51.422596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.423063"], ["id", 2027]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2027]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jsLDskfa9r046JvrRQQ37e0MvFhNTH5FqPDN4zPgT9QGVmFwEVCce"], ["created_at", "2019-12-11 23:41:51.435951"], ["updated_at", "2019-12-11 23:41:51.435951"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.437950"], ["updated_at", "2019-12-11 23:41:51.437950"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1726], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2028], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2028], ["room_id", 1726], ["created_at", "2019-12-11 23:41:51.441772"], ["updated_at", "2019-12-11 23:41:51.441772"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/959” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.444246"], ["last_sign_in_at", "2019-12-11 23:41:51.444246"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.444792"], ["id", 2028]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"959"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 959], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 959]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$me9iDaHbzdQqclWmJmZ9OuIOgqUZLFp.Mf/Ptl3f13NlOblBN2tEi"], ["created_at", "2019-12-11 23:41:51.457531"], ["updated_at", "2019-12-11 23:41:51.457531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.460464"], ["last_sign_in_at", "2019-12-11 23:41:51.460464"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.461090"], ["id", 2029]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 36ms (Views: 19.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SSzsCeGY8Elg6zfSngU7Q.d4yVmKLBAHEdUPvF8nGm2EQmqCzRH1u"], ["created_at", "2019-12-11 23:41:51.506403"], ["updated_at", "2019-12-11 23:41:51.506403"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.508952"], ["updated_at", "2019-12-11 23:41:51.508952"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1727], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2030], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2030], ["room_id", 1727], ["created_at", "2019-12-11 23:41:51.512991"], ["updated_at", "2019-12-11 23:41:51.512991"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1727], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2030], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2030], ["room_id", 1727], ["created_at", "2019-12-11 23:41:51.516882"], ["updated_at", "2019-12-11 23:41:51.516882"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.519414"], ["last_sign_in_at", "2019-12-11 23:41:51.519414"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.520177"], ["id", 2030]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1727], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2030], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2030], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6MvWHfTwQmByDxwnHY6O4e8ZYG2O/lBzuwYMHxumSRxTr.rgrmRje"], ["created_at", "2019-12-11 23:41:51.534580"], ["updated_at", "2019-12-11 23:41:51.534580"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.536841"], ["updated_at", "2019-12-11 23:41:51.536841"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1728], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2031], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2031], ["room_id", 1728], ["created_at", "2019-12-11 23:41:51.540705"], ["updated_at", "2019-12-11 23:41:51.540705"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1728], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2031], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2031], ["room_id", 1728], ["created_at", "2019-12-11 23:41:51.545180"], ["updated_at", "2019-12-11 23:41:51.545180"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.547666"], ["last_sign_in_at", "2019-12-11 23:41:51.547666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.548188"], ["id", 2031]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1728], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2031], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2031], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$H/JHEn6WWrYKu/W2fUIJcepHaX2JMyg49Sdq9Fyy.pxwDjhYLfyRu"], ["created_at", "2019-12-11 23:41:51.562831"], ["updated_at", "2019-12-11 23:41:51.562831"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.565106"], ["updated_at", "2019-12-11 23:41:51.565106"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1729], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2032], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2032], ["room_id", 1729], ["created_at", "2019-12-11 23:41:51.568925"], ["updated_at", "2019-12-11 23:41:51.568925"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1729], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2032], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2032], ["room_id", 1729], ["created_at", "2019-12-11 23:41:51.572601"], ["updated_at", "2019-12-11 23:41:51.572601"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.574839"], ["last_sign_in_at", "2019-12-11 23:41:51.574839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.575493"], ["id", 2032]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PmZbdfxEg45iTSEH9zf0p.OEvXjgVsB52zthTQ3rS6x6mbHIRbOFq"], ["created_at", "2019-12-11 23:41:51.586569"], ["updated_at", "2019-12-11 23:41:51.586569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.589073"], ["updated_at", "2019-12-11 23:41:51.589073"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1730], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2033], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2033], ["room_id", 1730], ["created_at", "2019-12-11 23:41:51.593730"], ["updated_at", "2019-12-11 23:41:51.593730"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1730], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2033], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2033], ["room_id", 1730], ["created_at", "2019-12-11 23:41:51.597939"], ["updated_at", "2019-12-11 23:41:51.597939"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.600344"], ["last_sign_in_at", "2019-12-11 23:41:51.600344"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.600920"], ["id", 2033]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G4l19uDKHu86RKPQQUA8COmutppJiJGJbAF8vMgB/QfYbRWP9aYm."], ["created_at", "2019-12-11 23:41:51.614247"], ["updated_at", "2019-12-11 23:41:51.614247"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.616752"], ["last_sign_in_at", "2019-12-11 23:41:51.616752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.617327"], ["id", 2034]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 65ms (Views: 48.1ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vr1mo71GfJwy2Z9Gd40p7urcbHGIDIb7jK9xXVIta4sYa7TWJiHqO"], ["created_at", "2019-12-11 23:41:51.695010"], ["updated_at", "2019-12-11 23:41:51.695010"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.697324"], ["last_sign_in_at", "2019-12-11 23:41:51.697324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.697819"], ["id", 2035]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YbCy7snBT0UCcV3ifZzYyuqIFxats.bgX0/3nqWrKNODIlkBbH6ou"], ["created_at", "2019-12-11 23:41:51.707969"], ["updated_at", "2019-12-11 23:41:51.707969"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.710917"], ["last_sign_in_at", "2019-12-11 23:41:51.710917"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.711452"], ["id", 2036]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9ycc.rPvi3xWpuGRn0GmGusACLMUx9ZsFby5YWrM7tUz3FQif1/4W"], ["created_at", "2019-12-11 23:41:51.740114"], ["updated_at", "2019-12-11 23:41:51.740114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.742748"], ["last_sign_in_at", "2019-12-11 23:41:51.742748"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.743272"], ["id", 2037]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dEFCijXHgK97pOK/KwBu/up58vGajS50WuWSGIZzgHDQIwG4pvImG"], ["created_at", "2019-12-11 23:41:51.762947"], ["updated_at", "2019-12-11 23:41:51.762947"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.765206"], ["updated_at", "2019-12-11 23:41:51.765206"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1731” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.767222"], ["last_sign_in_at", "2019-12-11 23:41:51.767222"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.767770"], ["id", 2038]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1731"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1731], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$58dysDsspqGXobqNaTaZFeKSGoWggaPREj.dESnuIT7GM.eAmEi/a"], ["created_at", "2019-12-11 23:41:51.795320"], ["updated_at", "2019-12-11 23:41:51.795320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.797619"], ["updated_at", "2019-12-11 23:41:51.797619"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1732” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.799792"], ["last_sign_in_at", "2019-12-11 23:41:51.799792"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.800399"], ["id", 2039]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1732"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1732], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.810015"], ["updated_at", "2019-12-11 23:41:51.810015"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1733” for 127.0.0.1 at 2019-12-11 20:41:51 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1733"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F9ccpGB8MM8yVXQzEtqPVeMoaVxXrtyMrGBO2NePhn9m23g3TT4cu"], ["created_at", "2019-12-11 23:41:51.820410"], ["updated_at", "2019-12-11 23:41:51.820410"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.822604"], ["updated_at", "2019-12-11 23:41:51.822604"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1734/edit” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.824668"], ["last_sign_in_at", "2019-12-11 23:41:51.824668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.825215"], ["id", 2040]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1734"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1734], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (9.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 28ms (Views: 10.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cat3Dv/1AtpcZqDc5W1fHOTIOtS9TH3CmhrJPW9oVlD58BZ5a9xSu"], ["created_at", "2019-12-11 23:41:51.861972"], ["updated_at", "2019-12-11 23:41:51.861972"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.864256"], ["updated_at", "2019-12-11 23:41:51.864256"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1735/edit” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.866307"], ["last_sign_in_at", "2019-12-11 23:41:51.866307"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.866913"], ["id", 2041]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1735"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1735], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.878327"], ["updated_at", "2019-12-11 23:41:51.878327"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1736” for 127.0.0.1 at 2019-12-11 20:41:51 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1736"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gsT1CIsiMhJfEXNB7yZKJ.1yAGndDFhxsW57Hz1e/a2NnaQkpkY8."], ["created_at", "2019-12-11 23:41:51.890300"], ["updated_at", "2019-12-11 23:41:51.890300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.893310"], ["last_sign_in_at", "2019-12-11 23:41:51.893310"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.893864"], ["id", 2042]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.897461"], ["updated_at", "2019-12-11 23:41:51.897461"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$enJBKqAYB9B4hWcNBt49kuPPpvOBHUUhHQjudJkmfI5ZoYu6TFPkq"], ["created_at", "2019-12-11 23:41:51.905864"], ["updated_at", "2019-12-11 23:41:51.905864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.908442"], ["last_sign_in_at", "2019-12-11 23:41:51.908442"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.909167"], ["id", 2043]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.912665"], ["updated_at", "2019-12-11 23:41:51.912665"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rpHA92uZkV5WKZwmXFR9ruzmTaDx8/NfEhifVV4SlCOAy.rchDPwq"], ["created_at", "2019-12-11 23:41:51.920994"], ["updated_at", "2019-12-11 23:41:51.920994"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.923566"], ["last_sign_in_at", "2019-12-11 23:41:51.923566"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.924052"], ["id", 2044]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CCOvhYktp7hzq4xk1/M8dueJHwldgvEhG6maivkGIJ2QvxyxORN/e"], ["created_at", "2019-12-11 23:41:51.935510"], ["updated_at", "2019-12-11 23:41:51.935510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.938134"], ["last_sign_in_at", "2019-12-11 23:41:51.938134"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.938664"], ["id", 2045]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wsWDErmd8de4MECDWoukVuMvflwxlcjopejhyNqeXsbMPpGNq./gu"], ["created_at", "2019-12-11 23:41:51.950083"], ["updated_at", "2019-12-11 23:41:51.950083"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.952612"], ["last_sign_in_at", "2019-12-11 23:41:51.952612"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.953106"], ["id", 2046]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PCCbvD22jr223ceMdXVGQ.x1RSY4di5i.wwcnteCB5mruRnq3ZT5u"], ["created_at", "2019-12-11 23:41:51.964075"], ["updated_at", "2019-12-11 23:41:51.964075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.966576"], ["updated_at", "2019-12-11 23:41:51.966576"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1739” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.969060"], ["last_sign_in_at", "2019-12-11 23:41:51.969060"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.969642"], ["id", 2047]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1739"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1739], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:41:51.973890"], ["id", 1739]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1739 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JjKRJR.8vCD.s6MN5bnXduYu6E6UCt1SXRcDxfLSAtjJmGwowPiHi"], ["created_at", "2019-12-11 23:41:51.983593"], ["updated_at", "2019-12-11 23:41:51.983593"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:51.986046"], ["updated_at", "2019-12-11 23:41:51.986046"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1740” for 127.0.0.1 at 2019-12-11 20:41:51 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:51.988658"], ["last_sign_in_at", "2019-12-11 23:41:51.988658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:51.989241"], ["id", 2048]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1740"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1740], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:41:51.993979"], ["id", 1740]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1740 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7uj1y84KygiuxSNbh7QYQOeiN8wYObDqtKZMnu9vZgt.6vRpXVfGC"], ["created_at", "2019-12-11 23:41:52.002950"], ["updated_at", "2019-12-11 23:41:52.002950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.005430"], ["updated_at", "2019-12-11 23:41:52.005430"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1741” for 127.0.0.1 at 2019-12-11 20:41:52 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.008135"], ["last_sign_in_at", "2019-12-11 23:41:52.008135"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.008935"], ["id", 2049]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1741"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1741], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5tgSB1hg/EXvzVSiQQjudOHjl7P2rZdwW0vCRRfjTWw2byilQl4Yq"], ["created_at", "2019-12-11 23:41:52.024227"], ["updated_at", "2019-12-11 23:41:52.024227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.026948"], ["updated_at", "2019-12-11 23:41:52.026948"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1742” for 127.0.0.1 at 2019-12-11 20:41:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.029480"], ["last_sign_in_at", "2019-12-11 23:41:52.029480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.030022"], ["id", 2050]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1742"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1742], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$puAW4OM3q/dIwZ3lmEdKj.fPmGr6XdB4M2YCj3PmvwXo8GQ.ejyLS"], ["created_at", "2019-12-11 23:41:52.044759"], ["updated_at", "2019-12-11 23:41:52.044759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:41:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.047409"], ["last_sign_in_at", "2019-12-11 23:41:52.047409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.047887"], ["id", 2051]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U07F2ABqaV1QpZK55RN/Jui5VjccJYLeHBn.s8TSlk5WazuyYHHh2"], ["created_at", "2019-12-11 23:41:52.057765"], ["updated_at", "2019-12-11 23:41:52.057765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.060562"], ["updated_at", "2019-12-11 23:41:52.060562"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1743” for 127.0.0.1 at 2019-12-11 20:41:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.062595"], ["last_sign_in_at", "2019-12-11 23:41:52.062595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.063107"], ["id", 2052]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1743"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1743], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1743]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PqXrIJrUVYqR3IanHiWAdeocNL.LEErxsw5NCnD7D3otsMYn1dCqq"], ["created_at", "2019-12-11 23:41:52.074108"], ["updated_at", "2019-12-11 23:41:52.074108"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.077045"], ["updated_at", "2019-12-11 23:41:52.077045"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1744” for 127.0.0.1 at 2019-12-11 20:41:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.079843"], ["last_sign_in_at", "2019-12-11 23:41:52.079843"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.080537"], ["id", 2053]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1744"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1744], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1744]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CkQ87131FDKCsCAXf6wPtuVOTslu51.06fPyGQPxjsQIRszCTzz9q"], ["created_at", "2019-12-11 23:41:52.092578"], ["updated_at", "2019-12-11 23:41:52.092578"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.095026"], ["updated_at", "2019-12-11 23:41:52.095026"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1745” for 127.0.0.1 at 2019-12-11 20:41:52 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.097068"], ["last_sign_in_at", "2019-12-11 23:41:52.097068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.097621"], ["id", 2054]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1745"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gTFyArrqDImi.R/mK5UYfOPF3GNjNSeuoyIVWGrHukWNEx2EaAHVS"], ["created_at", "2019-12-11 23:41:52.106458"], ["updated_at", "2019-12-11 23:41:52.106458"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:41:52.108927"], ["updated_at", "2019-12-11 23:41:52.108927"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1746” for 127.0.0.1 at 2019-12-11 20:41:52 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:41:52.111214"], ["last_sign_in_at", "2019-12-11 23:41:52.111214"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:41:52.111729"], ["id", 2055]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1746"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (7.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (3.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tVyZioaOHtghlabwNqQTNeSOGpvDOs1.MNLfUw5qzZV93e59hIPPW"], ["created_at", "2019-12-11 23:43:23.698961"], ["updated_at", "2019-12-11 23:43:23.698961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (3.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:23.711006"], ["updated_at", "2019-12-11 23:43:23.711006"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2056], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered appointments/my_appointments.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 175ms (Views: 115.6ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tbe.2F52BNHi6MOKwyzWneHSwpJbBcbKJsEhAmeBw/BEpnSH9HPjG"], ["created_at", "2019-12-11 23:43:23.899205"], ["updated_at", "2019-12-11 23:43:23.899205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:23.901501"], ["updated_at", "2019-12-11 23:43:23.901501"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (2.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1748], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2057], ["LIMIT", 1]]
SQL (4.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2057], ["room_id", 1748], ["created_at", "2019-12-11 23:43:23.945291"], ["updated_at", "2019-12-11 23:43:23.945291"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2057], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)

Appointment Exists (7.4ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2057], ["id", 968], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2B/F.bmNE0/wIlxl3YFRlObrcEOM7D5bdg4DE6.BSNSbp5L.lWv0y"], ["created_at", "2019-12-11 23:43:23.972254"], ["updated_at", "2019-12-11 23:43:23.972254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:23.974858"], ["updated_at", "2019-12-11 23:43:23.974858"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1749], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2058], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2058], ["room_id", 1749], ["created_at", "2019-12-11 23:43:23.979696"], ["updated_at", "2019-12-11 23:43:23.979696"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2058], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)

Appointment Exists (0.4ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2058], ["id", 969], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IffENcqxl8Jj4.aOC5VCleRkf1n.rOsfeopzjZKbgMSCWMq5pyvHy"], ["created_at", "2019-12-11 23:43:23.992228"], ["updated_at", "2019-12-11 23:43:23.992228"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:23.994629"], ["updated_at", "2019-12-11 23:43:23.994629"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1750], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2059], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 3], ["user_id", 2059], ["room_id", 1750], ["created_at", "2019-12-11 23:43:23.999455"], ["updated_at", "2019-12-11 23:43:23.999455"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2059], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)

Appointment Exists (0.4ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2059], ["id", 970], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0CetwsF9rbg8tiv5JDgKQuMPtnmx3.RN3JX0EIfd4VcMzIHsJKu9m"], ["created_at", "2019-12-11 23:43:24.012878"], ["updated_at", "2019-12-11 23:43:24.012878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.015215"], ["updated_at", "2019-12-11 23:43:24.015215"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1751"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1751], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1751')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)

Completed 200 OK in 111ms (Views: 76.7ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.EKi8w9cuzjK7wszXnTKfOWMBJEaDUL85Mdx5YYLiPFeNVtZMM9oO"], ["created_at", "2019-12-11 23:43:24.135899"], ["updated_at", "2019-12-11 23:43:24.135899"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.138235"], ["updated_at", "2019-12-11 23:43:24.138235"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1752], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2061], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2061], ["room_id", 1752], ["created_at", "2019-12-11 23:43:24.142771"], ["updated_at", "2019-12-11 23:43:24.142771"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1752"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1752], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1752')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZDde.rXd/QGGeOdvbmp2sO8tGvNSCdcCyO.Y3gJGx6zSN3OuJ6cni"], ["created_at", "2019-12-11 23:43:24.153928"], ["updated_at", "2019-12-11 23:43:24.153928"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.156324"], ["updated_at", "2019-12-11 23:43:24.156324"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1753], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2062], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2062], ["room_id", 1753], ["created_at", "2019-12-11 23:43:24.160260"], ["updated_at", "2019-12-11 23:43:24.160260"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1753"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1753], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1753')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$00DXzQewUEoa3B4YChnZSOD8R85LzSbw4Ajz8YCUsRy2.0G2jzaB6"], ["created_at", "2019-12-11 23:43:24.172223"], ["updated_at", "2019-12-11 23:43:24.172223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.174562"], ["updated_at", "2019-12-11 23:43:24.174562"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1754], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2063], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2063], ["room_id", 1754], ["created_at", "2019-12-11 23:43:24.178516"], ["updated_at", "2019-12-11 23:43:24.178516"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1754"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1754], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1754')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$52o2gCH4AjrqKwirOP.EeenlpykmKIbvZH9OOhU7gGiHxZm9OVkhW"], ["created_at", "2019-12-11 23:43:24.188793"], ["updated_at", "2019-12-11 23:43:24.188793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.190973"], ["updated_at", "2019-12-11 23:43:24.190973"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1755], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2064], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2064], ["room_id", 1755], ["created_at", "2019-12-11 23:43:24.194768"], ["updated_at", "2019-12-11 23:43:24.194768"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1755"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1755], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1755')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.2ms)

Completed 200 OK in 112ms (Views: 79.2ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fIAsiDOWNyrPWTuIfvGPbOqk46/WT8IQrT0G/aOhoequHxP4rtEhy"], ["created_at", "2019-12-11 23:43:24.785537"], ["updated_at", "2019-12-11 23:43:24.785537"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.787934"], ["updated_at", "2019-12-11 23:43:24.787934"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:43:24 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:24.809323"], ["last_sign_in_at", "2019-12-11 23:43:24.809323"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:24.810022"], ["id", 2065]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1756"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1756], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2065], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2065], ["room_id", 1756], ["created_at", "2019-12-11 23:43:24.818343"], ["updated_at", "2019-12-11 23:43:24.818343"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1756], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3nlNmXMO976dDwpSOnCSEegU9/giO.5jZcoMeLRtufraZpPhYp3oy"], ["created_at", "2019-12-11 23:43:24.828416"], ["updated_at", "2019-12-11 23:43:24.828416"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.831052"], ["updated_at", "2019-12-11 23:43:24.831052"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:43:24 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:24.833788"], ["last_sign_in_at", "2019-12-11 23:43:24.833788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:24.834378"], ["id", 2066]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1757"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1757], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2066], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2066], ["room_id", 1757], ["created_at", "2019-12-11 23:43:24.839662"], ["updated_at", "2019-12-11 23:43:24.839662"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KpWvSGDi4YjX9yEd6AoCyOBZ/aLbtUhsGz07ogpUQBkAeMlQRgoBe"], ["created_at", "2019-12-11 23:43:24.849277"], ["updated_at", "2019-12-11 23:43:24.849277"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.851463"], ["updated_at", "2019-12-11 23:43:24.851463"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:43:24 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:24.853949"], ["last_sign_in_at", "2019-12-11 23:43:24.853949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:24.854480"], ["id", 2067]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1758"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1758], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7njaLImn0vyCZwHkUvHCB.iQn9DUC7rZwTTOfJOK3sbArLQucOQ3e"], ["created_at", "2019-12-11 23:43:24.864024"], ["updated_at", "2019-12-11 23:43:24.864024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.866401"], ["updated_at", "2019-12-11 23:43:24.866401"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:43:24 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:24.868870"], ["last_sign_in_at", "2019-12-11 23:43:24.868870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:24.869401"], ["id", 2068]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1759"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lXdOERelvxWjwutetRGIceST8YAHigGBSNz0bgSvb2xuo/RP6gOEO"], ["created_at", "2019-12-11 23:43:24.879823"], ["updated_at", "2019-12-11 23:43:24.879823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:24.882176"], ["updated_at", "2019-12-11 23:43:24.882176"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1760], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2069], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2069], ["room_id", 1760], ["created_at", "2019-12-11 23:43:24.886497"], ["updated_at", "2019-12-11 23:43:24.886497"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1760” for 127.0.0.1 at 2019-12-11 20:43:24 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:24.888990"], ["last_sign_in_at", "2019-12-11 23:43:24.888990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:24.889539"], ["id", 2069]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1760"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1760], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1760')
Rendered appointments/show.html.erb within layouts/application (22.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 401ms (Views: 383.1ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3fJdSuVFEeTYGyrBRhFx3eEVr4SLij6mmKmUDZH5C2dwJFN4ih9KW"], ["created_at", "2019-12-11 23:43:25.301136"], ["updated_at", "2019-12-11 23:43:25.301136"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.304116"], ["updated_at", "2019-12-11 23:43:25.304116"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1761], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2070], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2070], ["room_id", 1761], ["created_at", "2019-12-11 23:43:25.308071"], ["updated_at", "2019-12-11 23:43:25.308071"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1761], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2070], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2070], ["room_id", 1761], ["created_at", "2019-12-11 23:43:25.312098"], ["updated_at", "2019-12-11 23:43:25.312098"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.315083"], ["last_sign_in_at", "2019-12-11 23:43:25.315083"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.315605"], ["id", 2070]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2070]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 22ms (Views: 4.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WE.W4LkQY6ydMDYwN62m6.EENZ/xas.qIs8RGAeizz/BKHHfvoWN2"], ["created_at", "2019-12-11 23:43:25.346113"], ["updated_at", "2019-12-11 23:43:25.346113"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.348395"], ["updated_at", "2019-12-11 23:43:25.348395"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1762], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2071], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2071], ["room_id", 1762], ["created_at", "2019-12-11 23:43:25.352137"], ["updated_at", "2019-12-11 23:43:25.352137"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1762], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2071], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2071], ["room_id", 1762], ["created_at", "2019-12-11 23:43:25.356008"], ["updated_at", "2019-12-11 23:43:25.356008"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.358508"], ["last_sign_in_at", "2019-12-11 23:43:25.358508"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.359038"], ["id", 2071]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2071]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iIK7EqYtTvEthGVOlX8VFOm7hdxyjgidiM5JvDFPzzW3rPGovpMke"], ["created_at", "2019-12-11 23:43:25.373423"], ["updated_at", "2019-12-11 23:43:25.373423"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.375532"], ["updated_at", "2019-12-11 23:43:25.375532"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1763], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2072], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2072], ["room_id", 1763], ["created_at", "2019-12-11 23:43:25.379940"], ["updated_at", "2019-12-11 23:43:25.379940"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/982” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.382449"], ["last_sign_in_at", "2019-12-11 23:43:25.382449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.382968"], ["id", 2072]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"982"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 982], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 982]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MYSOZcp.wJGkWBOoPJQGsetQY3msM2HhVn/vg0eFZpJhOtKcPhTMK"], ["created_at", "2019-12-11 23:43:25.397863"], ["updated_at", "2019-12-11 23:43:25.397863"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.400496"], ["last_sign_in_at", "2019-12-11 23:43:25.400496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.401077"], ["id", 2073]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 37ms (Views: 19.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yhaRylNHlKfitcD4jbqu.O6JxHsHV3xzdq.3/8gVHAn9WXo1zLz9i"], ["created_at", "2019-12-11 23:43:25.448061"], ["updated_at", "2019-12-11 23:43:25.448061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.450449"], ["updated_at", "2019-12-11 23:43:25.450449"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1764], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2074], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2074], ["room_id", 1764], ["created_at", "2019-12-11 23:43:25.454345"], ["updated_at", "2019-12-11 23:43:25.454345"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1764], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2074], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2074], ["room_id", 1764], ["created_at", "2019-12-11 23:43:25.458662"], ["updated_at", "2019-12-11 23:43:25.458662"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.461110"], ["last_sign_in_at", "2019-12-11 23:43:25.461110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.461672"], ["id", 2074]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1764], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2074], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2074], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mptA4VwyfVHVyMqakxwSyuUkwrk5c3mfmRNaZD25T.jdf4dvVgWRS"], ["created_at", "2019-12-11 23:43:25.476126"], ["updated_at", "2019-12-11 23:43:25.476126"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.478564"], ["updated_at", "2019-12-11 23:43:25.478564"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1765], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2075], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2075], ["room_id", 1765], ["created_at", "2019-12-11 23:43:25.482882"], ["updated_at", "2019-12-11 23:43:25.482882"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1765], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2075], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2075], ["room_id", 1765], ["created_at", "2019-12-11 23:43:25.487051"], ["updated_at", "2019-12-11 23:43:25.487051"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.489705"], ["last_sign_in_at", "2019-12-11 23:43:25.489705"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.490236"], ["id", 2075]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1765], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2075], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2075], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$S.KPbi66u.dqJN8ot9I3yuT8vo502oNYDUvKvGkHuZ/XkPbK1TFIK"], ["created_at", "2019-12-11 23:43:25.505587"], ["updated_at", "2019-12-11 23:43:25.505587"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.507920"], ["updated_at", "2019-12-11 23:43:25.507920"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1766], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2076], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2076], ["room_id", 1766], ["created_at", "2019-12-11 23:43:25.512039"], ["updated_at", "2019-12-11 23:43:25.512039"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1766], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2076], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2076], ["room_id", 1766], ["created_at", "2019-12-11 23:43:25.516411"], ["updated_at", "2019-12-11 23:43:25.516411"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.518829"], ["last_sign_in_at", "2019-12-11 23:43:25.518829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.519330"], ["id", 2076]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aUTZ2yf3BY58l.vU5NCkmuCPmQEGfEJgsvBKsTEKCGGEwL7UnLETu"], ["created_at", "2019-12-11 23:43:25.530930"], ["updated_at", "2019-12-11 23:43:25.530930"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.533460"], ["updated_at", "2019-12-11 23:43:25.533460"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1767], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2077], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2077], ["room_id", 1767], ["created_at", "2019-12-11 23:43:25.537475"], ["updated_at", "2019-12-11 23:43:25.537475"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1767], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2077], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2077], ["room_id", 1767], ["created_at", "2019-12-11 23:43:25.541523"], ["updated_at", "2019-12-11 23:43:25.541523"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.543934"], ["last_sign_in_at", "2019-12-11 23:43:25.543934"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.544481"], ["id", 2077]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FGQk74cbUesSm5uQVllfYunrDJp1CEvqEd6LbAYoQ.sabIKZh9G/G"], ["created_at", "2019-12-11 23:43:25.558462"], ["updated_at", "2019-12-11 23:43:25.558462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.560910"], ["last_sign_in_at", "2019-12-11 23:43:25.560910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.561447"], ["id", 2078]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 64ms (Views: 48.0ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0bNuzlpwWIYx03KbProslePQ9OVYFKv8lMIBHN/vPJXt8BfG9v1L2"], ["created_at", "2019-12-11 23:43:25.637610"], ["updated_at", "2019-12-11 23:43:25.637610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.639944"], ["last_sign_in_at", "2019-12-11 23:43:25.639944"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.640502"], ["id", 2079]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3dY3N/iWrtPH/zAnlWVfheiD2RPln2ZajZHLg.laK5YZ5HlMZo92u"], ["created_at", "2019-12-11 23:43:25.650997"], ["updated_at", "2019-12-11 23:43:25.650997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.653362"], ["last_sign_in_at", "2019-12-11 23:43:25.653362"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.653889"], ["id", 2080]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2TLF395QW7Zlv6Y44PBOe.LbTaqBbHTfQZcNWk2Vj7hgJQl22F11S"], ["created_at", "2019-12-11 23:43:25.683496"], ["updated_at", "2019-12-11 23:43:25.683496"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.685820"], ["last_sign_in_at", "2019-12-11 23:43:25.685820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.686384"], ["id", 2081]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wlskGb007/vNOo7dh9d1HurAYwcV1APw/DvtZ7nVRcHcASHHvY/9G"], ["created_at", "2019-12-11 23:43:25.706114"], ["updated_at", "2019-12-11 23:43:25.706114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.708391"], ["updated_at", "2019-12-11 23:43:25.708391"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1768” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.710576"], ["last_sign_in_at", "2019-12-11 23:43:25.710576"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.711101"], ["id", 2082]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1768"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1768], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 19ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nYTvHcAzItJEjN8qxkZIp.XrpNQVUMDlWLGd8FUKX5fKBJ0lhT4gC"], ["created_at", "2019-12-11 23:43:25.738607"], ["updated_at", "2019-12-11 23:43:25.738607"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.740895"], ["updated_at", "2019-12-11 23:43:25.740895"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1769” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.743008"], ["last_sign_in_at", "2019-12-11 23:43:25.743008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.743573"], ["id", 2083]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1769"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1769], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.753562"], ["updated_at", "2019-12-11 23:43:25.753562"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1770” for 127.0.0.1 at 2019-12-11 20:43:25 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1770"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p9ve4pJB4qVbymbQHPfZyuOwUPz7PWmi/US9ULXBNfa0JVYWd53K6"], ["created_at", "2019-12-11 23:43:25.765240"], ["updated_at", "2019-12-11 23:43:25.765240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.767535"], ["updated_at", "2019-12-11 23:43:25.767535"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1771/edit” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.770064"], ["last_sign_in_at", "2019-12-11 23:43:25.770064"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.770845"], ["id", 2084]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1771"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1771], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5v.c7D2oYWmZ8nuk2AKGm.lL4NEjVqc294NN.WiClknZ0RQBqIfsW"], ["created_at", "2019-12-11 23:43:25.800166"], ["updated_at", "2019-12-11 23:43:25.800166"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.810123"], ["updated_at", "2019-12-11 23:43:25.810123"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1772/edit” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.812435"], ["last_sign_in_at", "2019-12-11 23:43:25.812435"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.812930"], ["id", 2085]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1772"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1772], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.822650"], ["updated_at", "2019-12-11 23:43:25.822650"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1773” for 127.0.0.1 at 2019-12-11 20:43:25 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1773"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yg4PDel.CQQXGRmlJOQ0Zekz.fW6fPZRug0xDZIT22OUljmllYgF6"], ["created_at", "2019-12-11 23:43:25.833699"], ["updated_at", "2019-12-11 23:43:25.833699"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.836271"], ["last_sign_in_at", "2019-12-11 23:43:25.836271"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.836743"], ["id", 2086]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.839888"], ["updated_at", "2019-12-11 23:43:25.839888"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ICEfl2VlS736GBD/ikrATOXP2fO0gEZD2FMieBUE2Tli.kPVpNCQm"], ["created_at", "2019-12-11 23:43:25.848014"], ["updated_at", "2019-12-11 23:43:25.848014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.850504"], ["last_sign_in_at", "2019-12-11 23:43:25.850504"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.850996"], ["id", 2087]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.853929"], ["updated_at", "2019-12-11 23:43:25.853929"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mpldGIy8KeQ22uw/m5R/6OAdFUgQ7nMfIc.YsqKMxvlggX6cn/Lm6"], ["created_at", "2019-12-11 23:43:25.861649"], ["updated_at", "2019-12-11 23:43:25.861649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.864763"], ["last_sign_in_at", "2019-12-11 23:43:25.864763"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.865298"], ["id", 2088]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KOHJeCccQc0MPD4TEegkTOPINms5QAXXnNUkauGnYD0e8hmbsZ8AG"], ["created_at", "2019-12-11 23:43:25.878075"], ["updated_at", "2019-12-11 23:43:25.878075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.881167"], ["last_sign_in_at", "2019-12-11 23:43:25.881167"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.881673"], ["id", 2089]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YcXLGuWSnbF1q4FxDi1yEuxsWI/FtoOGk7ZEraA16bozPC5h9D12m"], ["created_at", "2019-12-11 23:43:25.892095"], ["updated_at", "2019-12-11 23:43:25.892095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.894667"], ["last_sign_in_at", "2019-12-11 23:43:25.894667"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.895267"], ["id", 2090]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5ckTz4RcwW6hkJprzB16ae9yEWYWabTT/DBY1AcDHv9izKgXCJqhe"], ["created_at", "2019-12-11 23:43:25.906575"], ["updated_at", "2019-12-11 23:43:25.906575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.908865"], ["updated_at", "2019-12-11 23:43:25.908865"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1776” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.911134"], ["last_sign_in_at", "2019-12-11 23:43:25.911134"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.911772"], ["id", 2091]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1776"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1776], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:43:25.916344"], ["id", 1776]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1776 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aAZJjbbf0zngMhySJTMOg.0wKr1SlAf2ukxIEdcBuNZFgv6Pmilde"], ["created_at", "2019-12-11 23:43:25.924473"], ["updated_at", "2019-12-11 23:43:25.924473"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.926774"], ["updated_at", "2019-12-11 23:43:25.926774"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1777” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.929777"], ["last_sign_in_at", "2019-12-11 23:43:25.929777"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.930446"], ["id", 2092]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1777"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1777], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:43:25.934413"], ["id", 1777]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1777 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gMsBAjzPCVeuP80LBGPKf.4VLa2XcHrkohlpjbuqr1EEXKHBNHOIi"], ["created_at", "2019-12-11 23:43:25.943760"], ["updated_at", "2019-12-11 23:43:25.943760"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.946564"], ["updated_at", "2019-12-11 23:43:25.946564"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1778” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.949246"], ["last_sign_in_at", "2019-12-11 23:43:25.949246"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.949776"], ["id", 2093]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1778"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1778], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MtB5Qr3HsNTpF1VSlbKRxOtcuYtz6KqTgeMPywZW0fW6K85rrBltG"], ["created_at", "2019-12-11 23:43:25.964247"], ["updated_at", "2019-12-11 23:43:25.964247"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.966559"], ["updated_at", "2019-12-11 23:43:25.966559"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1779” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.968994"], ["last_sign_in_at", "2019-12-11 23:43:25.968994"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.969505"], ["id", 2094]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1779"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1779], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p4MeAxyMWQGdQpr5GYPFzOCpvjS//Tnsl5q8CEIX.aGjy4kvHsPQu"], ["created_at", "2019-12-11 23:43:25.983997"], ["updated_at", "2019-12-11 23:43:25.983997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:43:25 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:25.986567"], ["last_sign_in_at", "2019-12-11 23:43:25.986567"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:25.987034"], ["id", 2095]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ll9PjBehgMuZYf9WsJBE0eAIMKEWqbjrNHop3h46DwoOv5BmyAK4K"], ["created_at", "2019-12-11 23:43:25.997314"], ["updated_at", "2019-12-11 23:43:25.997314"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:25.999716"], ["updated_at", "2019-12-11 23:43:25.999716"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1780” for 127.0.0.1 at 2019-12-11 20:43:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:26.001613"], ["last_sign_in_at", "2019-12-11 23:43:26.001613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:26.002140"], ["id", 2096]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1780"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1780], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1780]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gy3CDlx8bloh7sDcLaUUh.t5qJ0gFr4UEJ/h7/G9uQ4jWpTra6bfC"], ["created_at", "2019-12-11 23:43:26.013744"], ["updated_at", "2019-12-11 23:43:26.013744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:26.016026"], ["updated_at", "2019-12-11 23:43:26.016026"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1781” for 127.0.0.1 at 2019-12-11 20:43:26 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:26.018067"], ["last_sign_in_at", "2019-12-11 23:43:26.018067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:26.018668"], ["id", 2097]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1781"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1781], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1781]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7gyoYEW5tB1pXjiux.VVOucRkbighGKuiCkDnJNES6dWW0hCijWBW"], ["created_at", "2019-12-11 23:43:26.030586"], ["updated_at", "2019-12-11 23:43:26.030586"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:26.032811"], ["updated_at", "2019-12-11 23:43:26.032811"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1782” for 127.0.0.1 at 2019-12-11 20:43:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:26.034648"], ["last_sign_in_at", "2019-12-11 23:43:26.034648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:26.035133"], ["id", 2098]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1782"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jnWNHpoIE/3.RapjPlfZpu9v8nj7q1gezOmdpWqGfQbdxXDJa6k1u"], ["created_at", "2019-12-11 23:43:26.045391"], ["updated_at", "2019-12-11 23:43:26.045391"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:43:26.048249"], ["updated_at", "2019-12-11 23:43:26.048249"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1783” for 127.0.0.1 at 2019-12-11 20:43:26 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:43:26.050553"], ["last_sign_in_at", "2019-12-11 23:43:26.050553"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:43:26.051131"], ["id", 2099]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1783"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.9ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KFkGMY7zt4CSzahYdmyp0uJzoTaTuMdUvRShb/pF5910pblti39nq"], ["created_at", "2019-12-11 23:58:15.517343"], ["updated_at", "2019-12-11 23:58:15.517343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.527978"], ["updated_at", "2019-12-11 23:58:15.527978"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2100], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 184ms (Views: 122.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CujsP1KmQ6MW/iGLh22pJ.3.x3ZritIK4qPIzwuL3L.jbJWTnZBuO"], ["created_at", "2019-12-11 23:58:15.722572"], ["updated_at", "2019-12-11 23:58:15.722572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.726053"], ["updated_at", "2019-12-11 23:58:15.726053"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1785], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2101], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2101], ["room_id", 1785], ["created_at", "2019-12-11 23:58:15.770600"], ["updated_at", "2019-12-11 23:58:15.770600"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2101], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.1ms)

Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.3ms)

Appointment Exists (0.6ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2101], ["id", 991], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DYfnMBWuGsI8YmsiRCu01.IJwKD62zC8rUiEbqxVdCjcCUHtqa22u"], ["created_at", "2019-12-11 23:58:15.788703"], ["updated_at", "2019-12-11 23:58:15.788703"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.7ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.791451"], ["updated_at", "2019-12-11 23:58:15.791451"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1786], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2102], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2102], ["room_id", 1786], ["created_at", "2019-12-11 23:58:15.797852"], ["updated_at", "2019-12-11 23:58:15.797852"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2102], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)

Appointment Exists (0.4ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2102], ["id", 992], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KOwNnIJGK10pDswZ7lqNFu4BllIb2qWoyK9WmZCBOMyw2Vt3B46yC"], ["created_at", "2019-12-11 23:58:15.811348"], ["updated_at", "2019-12-11 23:58:15.811348"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.813845"], ["updated_at", "2019-12-11 23:58:15.813845"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1787], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2103], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 3], ["user_id", 2103], ["room_id", 1787], ["created_at", "2019-12-11 23:58:15.818203"], ["updated_at", "2019-12-11 23:58:15.818203"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2103], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)

Appointment Exists (0.4ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2103], ["id", 993], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kVSxyCTgEAk01hXmwMQFEOQDrciI6moknrWauONYedn1sV8.4vLGG"], ["created_at", "2019-12-11 23:58:15.833182"], ["updated_at", "2019-12-11 23:58:15.833182"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.835787"], ["updated_at", "2019-12-11 23:58:15.835787"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1788"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1788], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1788')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)

Completed 200 OK in 139ms (Views: 93.7ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$u/V9VeCKgaSY3MEKo53hse9foy9ApXnmjPaITtrDABowOjTtsxSOq"], ["created_at", "2019-12-11 23:58:15.983639"], ["updated_at", "2019-12-11 23:58:15.983639"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:15.985942"], ["updated_at", "2019-12-11 23:58:15.985942"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1789], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2105], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2105], ["room_id", 1789], ["created_at", "2019-12-11 23:58:15.990580"], ["updated_at", "2019-12-11 23:58:15.990580"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1789"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1789], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1789')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RC4fRkaxENWwMyDzUviGe.TRCJ1mZvKHvCExRE/6EvCEiooXVjGeS"], ["created_at", "2019-12-11 23:58:16.002596"], ["updated_at", "2019-12-11 23:58:16.002596"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.005043"], ["updated_at", "2019-12-11 23:58:16.005043"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1790], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2106], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2106], ["room_id", 1790], ["created_at", "2019-12-11 23:58:16.011665"], ["updated_at", "2019-12-11 23:58:16.011665"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1790"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1790], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1790')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iStNJ1zGxKT6f6jMqAJezuH8.ILC4HaDp9K6ooZc8uQ/pgDOiff1."], ["created_at", "2019-12-11 23:58:16.023596"], ["updated_at", "2019-12-11 23:58:16.023596"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.027871"], ["updated_at", "2019-12-11 23:58:16.027871"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1791], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2107], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2107], ["room_id", 1791], ["created_at", "2019-12-11 23:58:16.032397"], ["updated_at", "2019-12-11 23:58:16.032397"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1791"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1791], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1791')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iVOZDSlYi.jWVQQP.kAFMeNPen9ul.xO5FsFNLJr6xLeM2lJpwr1e"], ["created_at", "2019-12-11 23:58:16.045143"], ["updated_at", "2019-12-11 23:58:16.045143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.047960"], ["updated_at", "2019-12-11 23:58:16.047960"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1792], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2108], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2108], ["room_id", 1792], ["created_at", "2019-12-11 23:58:16.052964"], ["updated_at", "2019-12-11 23:58:16.052964"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1792"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1792], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1792')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 123ms (Views: 87.5ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Jk50Dd.QAyp.4gKzWqmiT.EcPz0Xv/nGCg9yj/jFLVZw0WsEnF/DO"], ["created_at", "2019-12-11 23:58:16.753319"], ["updated_at", "2019-12-11 23:58:16.753319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.755667"], ["updated_at", "2019-12-11 23:58:16.755667"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:58:16 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:16.779675"], ["last_sign_in_at", "2019-12-11 23:58:16.779675"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:16.781125"], ["id", 2109]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1793"}
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1793], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2109], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2109], ["room_id", 1793], ["created_at", "2019-12-11 23:58:16.797907"], ["updated_at", "2019-12-11 23:58:16.797907"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 8ms (ActiveRecord: 1.5ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1793], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uJyHwB.hhmD14ZQwX40qzO6fIFGGD0wrcvT2DZqjOSC7d3KaN0w0O"], ["created_at", "2019-12-11 23:58:16.807567"], ["updated_at", "2019-12-11 23:58:16.807567"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.812453"], ["updated_at", "2019-12-11 23:58:16.812453"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:58:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:16.815351"], ["last_sign_in_at", "2019-12-11 23:58:16.815351"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:16.815920"], ["id", 2110]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1794"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1794], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2110], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2110], ["room_id", 1794], ["created_at", "2019-12-11 23:58:16.821773"], ["updated_at", "2019-12-11 23:58:16.821773"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fmXBTjpjA4VV6pBqKV1PUeJP899RWi/qCAR4y99Qu1IXtDUYRnU.q"], ["created_at", "2019-12-11 23:58:16.831332"], ["updated_at", "2019-12-11 23:58:16.831332"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.833570"], ["updated_at", "2019-12-11 23:58:16.833570"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:58:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:16.836202"], ["last_sign_in_at", "2019-12-11 23:58:16.836202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:16.836751"], ["id", 2111]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1795"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1795], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rdsCYO/Z3qKuCRWtxdV5lOXftdgR8gI/eOD4juwiBdBbpxPshAIba"], ["created_at", "2019-12-11 23:58:16.847825"], ["updated_at", "2019-12-11 23:58:16.847825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.850717"], ["updated_at", "2019-12-11 23:58:16.850717"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 20:58:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:16.853338"], ["last_sign_in_at", "2019-12-11 23:58:16.853338"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:16.853879"], ["id", 2112]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1796"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IGVlkCmcZV4.qBDl337gj.gvpQez9h/mObN792lELZ6uxLCVhtluG"], ["created_at", "2019-12-11 23:58:16.866707"], ["updated_at", "2019-12-11 23:58:16.866707"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:16.869803"], ["updated_at", "2019-12-11 23:58:16.869803"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1797], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2113], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2113], ["room_id", 1797], ["created_at", "2019-12-11 23:58:16.874284"], ["updated_at", "2019-12-11 23:58:16.874284"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1797” for 127.0.0.1 at 2019-12-11 20:58:16 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:16.878496"], ["last_sign_in_at", "2019-12-11 23:58:16.878496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:16.879147"], ["id", 2113]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1797"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1797], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1797')
Rendered appointments/show.html.erb within layouts/application (32.4ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 479ms (Views: 459.8ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TVnIPF6GZxbWHpIrj/GKouQHXrEK5Bu37pLJn6WZJG/4F/fC.PAwW"], ["created_at", "2019-12-11 23:58:17.368537"], ["updated_at", "2019-12-11 23:58:17.368537"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.371320"], ["updated_at", "2019-12-11 23:58:17.371320"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1798], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2114], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2114], ["room_id", 1798], ["created_at", "2019-12-11 23:58:17.376263"], ["updated_at", "2019-12-11 23:58:17.376263"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1798], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2114], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2114], ["room_id", 1798], ["created_at", "2019-12-11 23:58:17.380696"], ["updated_at", "2019-12-11 23:58:17.380696"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.383010"], ["last_sign_in_at", "2019-12-11 23:58:17.383010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.383535"], ["id", 2114]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2114]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 24ms (Views: 5.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$O/ZedlX57oLMnwam5DsFAuX9FFTAMuj2cmvcDgOn..5PrhIktn1xe"], ["created_at", "2019-12-11 23:58:17.415706"], ["updated_at", "2019-12-11 23:58:17.415706"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.418127"], ["updated_at", "2019-12-11 23:58:17.418127"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1799], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2115], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2115], ["room_id", 1799], ["created_at", "2019-12-11 23:58:17.422410"], ["updated_at", "2019-12-11 23:58:17.422410"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1799], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2115], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2115], ["room_id", 1799], ["created_at", "2019-12-11 23:58:17.427281"], ["updated_at", "2019-12-11 23:58:17.427281"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.429616"], ["last_sign_in_at", "2019-12-11 23:58:17.429616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.430161"], ["id", 2115]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2115]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YtMeaUz.nPwswqg2mpSYd..yLU4hKKeYp41FxmWlj8c574NSOpaPa"], ["created_at", "2019-12-11 23:58:17.444658"], ["updated_at", "2019-12-11 23:58:17.444658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.446813"], ["updated_at", "2019-12-11 23:58:17.446813"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1800], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2116], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2116], ["room_id", 1800], ["created_at", "2019-12-11 23:58:17.451436"], ["updated_at", "2019-12-11 23:58:17.451436"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/1005” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.453681"], ["last_sign_in_at", "2019-12-11 23:58:17.453681"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.454222"], ["id", 2116]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"1005"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 1005], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 1005]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nWTFj8mvBKgbcmfMFzBZ6.x3Yt1AoXyazoM3rOk3R98Jr15ruCJb6"], ["created_at", "2019-12-11 23:58:17.469024"], ["updated_at", "2019-12-11 23:58:17.469024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.471324"], ["last_sign_in_at", "2019-12-11 23:58:17.471324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.471824"], ["id", 2117]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 38ms (Views: 20.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a5HFZG.ZOCi3FZtJZ6J/Bua5WGG2d1BvaSQXgHmZ8G4fCzYnnJsjq"], ["created_at", "2019-12-11 23:58:17.520182"], ["updated_at", "2019-12-11 23:58:17.520182"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.522756"], ["updated_at", "2019-12-11 23:58:17.522756"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1801], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2118], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2118], ["room_id", 1801], ["created_at", "2019-12-11 23:58:17.527842"], ["updated_at", "2019-12-11 23:58:17.527842"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1801], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2118], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2118], ["room_id", 1801], ["created_at", "2019-12-11 23:58:17.532443"], ["updated_at", "2019-12-11 23:58:17.532443"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.534943"], ["last_sign_in_at", "2019-12-11 23:58:17.534943"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.535484"], ["id", 2118]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1801], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2118], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2118], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e6/jg8AZ3IdEqywOu/KKP.it95U1Z0BAiAvlLFScb8KRP5D8iu7nG"], ["created_at", "2019-12-11 23:58:17.550922"], ["updated_at", "2019-12-11 23:58:17.550922"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.553258"], ["updated_at", "2019-12-11 23:58:17.553258"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1802], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2119], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2119], ["room_id", 1802], ["created_at", "2019-12-11 23:58:17.559456"], ["updated_at", "2019-12-11 23:58:17.559456"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1802], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2119], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2119], ["room_id", 1802], ["created_at", "2019-12-11 23:58:17.565094"], ["updated_at", "2019-12-11 23:58:17.565094"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.567952"], ["last_sign_in_at", "2019-12-11 23:58:17.567952"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.568689"], ["id", 2119]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1802], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2119], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2119], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZMWPCg8eTr20kb0GZ5styez3LX/I/1/FozaMixqMLH3XaooeDaSGO"], ["created_at", "2019-12-11 23:58:17.586461"], ["updated_at", "2019-12-11 23:58:17.586461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.588829"], ["updated_at", "2019-12-11 23:58:17.588829"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1803], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2120], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2120], ["room_id", 1803], ["created_at", "2019-12-11 23:58:17.593962"], ["updated_at", "2019-12-11 23:58:17.593962"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1803], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2120], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2120], ["room_id", 1803], ["created_at", "2019-12-11 23:58:17.608079"], ["updated_at", "2019-12-11 23:58:17.608079"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.611197"], ["last_sign_in_at", "2019-12-11 23:58:17.611197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.611770"], ["id", 2120]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1wsmeYYE62pq7lL07emHiuSXqndeqkrlrAwLuYONbtLNfAvymIObm"], ["created_at", "2019-12-11 23:58:17.623757"], ["updated_at", "2019-12-11 23:58:17.623757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.627058"], ["updated_at", "2019-12-11 23:58:17.627058"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1804], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2121], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2121], ["room_id", 1804], ["created_at", "2019-12-11 23:58:17.631246"], ["updated_at", "2019-12-11 23:58:17.631246"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1804], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2121], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2121], ["room_id", 1804], ["created_at", "2019-12-11 23:58:17.635820"], ["updated_at", "2019-12-11 23:58:17.635820"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.638515"], ["last_sign_in_at", "2019-12-11 23:58:17.638515"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.639082"], ["id", 2121]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q8wC9voMVRTw25aQenaudOcSg8Dstj2Tqr.b7hqjgKHWi8a6S.oi."], ["created_at", "2019-12-11 23:58:17.655143"], ["updated_at", "2019-12-11 23:58:17.655143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.657990"], ["last_sign_in_at", "2019-12-11 23:58:17.657990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.658825"], ["id", 2122]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (10.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 68ms (Views: 51.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JjzhL2CUmVxBIELemjp9AO9Op1xGYBTYo.pnXTjue4vHCap/NZycO"], ["created_at", "2019-12-11 23:58:17.739506"], ["updated_at", "2019-12-11 23:58:17.739506"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.742361"], ["last_sign_in_at", "2019-12-11 23:58:17.742361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.742999"], ["id", 2123]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N0agt9yQHPM.2Nxfbe745eiJaeIMPFB6JwpxDnGEdbbsVGvNsrAfG"], ["created_at", "2019-12-11 23:58:17.753732"], ["updated_at", "2019-12-11 23:58:17.753732"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.756119"], ["last_sign_in_at", "2019-12-11 23:58:17.756119"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.756670"], ["id", 2124]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 22ms (Views: 4.0ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y3Sg0tprg5Gu5fMfpkAD2uPAc58YvPsi2m1ptMQRT/FqIFPoqIlIu"], ["created_at", "2019-12-11 23:58:17.787996"], ["updated_at", "2019-12-11 23:58:17.787996"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.790470"], ["last_sign_in_at", "2019-12-11 23:58:17.790470"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.790984"], ["id", 2125]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.GyLCReals5g2VdMAyIXUeuGgaytEOn9ke/ODgWLeprbwOV8lCQLS"], ["created_at", "2019-12-11 23:58:17.812488"], ["updated_at", "2019-12-11 23:58:17.812488"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.814892"], ["updated_at", "2019-12-11 23:58:17.814892"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1805” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.817136"], ["last_sign_in_at", "2019-12-11 23:58:17.817136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.817705"], ["id", 2126]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1805"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1805], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PuWgoLw6B7IUpH/OdEWF8ewoenV1wDg9dypzUiay2f0ciqv60mTGu"], ["created_at", "2019-12-11 23:58:17.846364"], ["updated_at", "2019-12-11 23:58:17.846364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.848908"], ["updated_at", "2019-12-11 23:58:17.848908"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1806” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.851304"], ["last_sign_in_at", "2019-12-11 23:58:17.851304"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.851910"], ["id", 2127]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1806"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1806], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.863277"], ["updated_at", "2019-12-11 23:58:17.863277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1807” for 127.0.0.1 at 2019-12-11 20:58:17 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1807"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7RtHRUMiwxygQqSEXqFukO3K3pjjmb1Xg4Ckgd/oDP.etdaAwtgrm"], ["created_at", "2019-12-11 23:58:17.879807"], ["updated_at", "2019-12-11 23:58:17.879807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.882356"], ["updated_at", "2019-12-11 23:58:17.882356"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1808/edit” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.884614"], ["last_sign_in_at", "2019-12-11 23:58:17.884614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.885065"], ["id", 2128]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1808"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1808], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 21ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cc65kMjcV795sz6cuFV.IeLcPDVGDGoFFL8RyJ1rtsfAc2hIRkAqy"], ["created_at", "2019-12-11 23:58:17.914544"], ["updated_at", "2019-12-11 23:58:17.914544"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.916983"], ["updated_at", "2019-12-11 23:58:17.916983"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1809/edit” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.919265"], ["last_sign_in_at", "2019-12-11 23:58:17.919265"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.919910"], ["id", 2129]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1809"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1809], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.931090"], ["updated_at", "2019-12-11 23:58:17.931090"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1810” for 127.0.0.1 at 2019-12-11 20:58:17 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1810"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CM/BDSQ4q.O6AmTmZ67VYeFlMZqsiga3EgPPQxV161G5ja7SSI2J2"], ["created_at", "2019-12-11 23:58:17.943147"], ["updated_at", "2019-12-11 23:58:17.943147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.946110"], ["last_sign_in_at", "2019-12-11 23:58:17.946110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.946835"], ["id", 2130]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.950234"], ["updated_at", "2019-12-11 23:58:17.950234"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q0GYM43Y0hK4rev98zsTp.XNzSddlf8QtXxnLMhT5L/qXSqX.cgl."], ["created_at", "2019-12-11 23:58:17.958440"], ["updated_at", "2019-12-11 23:58:17.958440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.961769"], ["last_sign_in_at", "2019-12-11 23:58:17.961769"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.962476"], ["id", 2131]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:17.966070"], ["updated_at", "2019-12-11 23:58:17.966070"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0cYCPBQUsK5oafQXL12EPeCoDkLXBo6dnxlgTEPEg1nq350g123p."], ["created_at", "2019-12-11 23:58:17.976836"], ["updated_at", "2019-12-11 23:58:17.976836"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:17 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:17.981639"], ["last_sign_in_at", "2019-12-11 23:58:17.981639"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:17.982557"], ["id", 2132]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (1.5ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.8ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KP7N0LP0EWJ18fDdsidbMuf.EK2ugL4ka8I1GrywDvlbLMtepKv4q"], ["created_at", "2019-12-11 23:58:18.000461"], ["updated_at", "2019-12-11 23:58:18.000461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.003864"], ["last_sign_in_at", "2019-12-11 23:58:18.003864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.004837"], ["id", 2133]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BOr7FPpkjqFl14rzE/eUBurE6eJUFJ0LoQvfp6SeWFnU3TtCRO5Bm"], ["created_at", "2019-12-11 23:58:18.018037"], ["updated_at", "2019-12-11 23:58:18.018037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.020813"], ["last_sign_in_at", "2019-12-11 23:58:18.020813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.021354"], ["id", 2134]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C7U.xo1CnLFWbQijXXn2H.cbdqD.RDYE4AvjjvJaqtdrlefjA2rGu"], ["created_at", "2019-12-11 23:58:18.033369"], ["updated_at", "2019-12-11 23:58:18.033369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.035485"], ["updated_at", "2019-12-11 23:58:18.035485"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1813” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.037775"], ["last_sign_in_at", "2019-12-11 23:58:18.037775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.038346"], ["id", 2135]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1813"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1813], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:58:18.042829"], ["id", 1813]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1813 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oeBXIl7O83WAqiyCA1qYDuFmqh.q2XbhmjdV4rTllZad7mK4fk4uG"], ["created_at", "2019-12-11 23:58:18.052016"], ["updated_at", "2019-12-11 23:58:18.052016"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.054397"], ["updated_at", "2019-12-11 23:58:18.054397"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1814” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.056902"], ["last_sign_in_at", "2019-12-11 23:58:18.056902"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.057463"], ["id", 2136]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1814"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1814], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-11 23:58:18.062699"], ["id", 1814]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1814 Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dSbJejCr/zkkkxaS3P1hhum4URfTLUuXk8iIwjXplQAvMxPuqBLlS"], ["created_at", "2019-12-11 23:58:18.072438"], ["updated_at", "2019-12-11 23:58:18.072438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.075510"], ["updated_at", "2019-12-11 23:58:18.075510"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1815” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.078831"], ["last_sign_in_at", "2019-12-11 23:58:18.078831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.079375"], ["id", 2137]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1815"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1815], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.7ms)

Room Load (0.6ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KEUJ1asrZ4VXLISRMpajvukiFty.clC3WFW7G.K2iOGM7bh.bG2/."], ["created_at", "2019-12-11 23:58:18.095843"], ["updated_at", "2019-12-11 23:58:18.095843"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.098501"], ["updated_at", "2019-12-11 23:58:18.098501"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1816” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.101228"], ["last_sign_in_at", "2019-12-11 23:58:18.101228"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.101800"], ["id", 2138]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1816"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1816], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gpfjd.Awm0UXdFdBe16pKOINyQ8v0QD04BnNoheP86qhQui1jmI/."], ["created_at", "2019-12-11 23:58:18.119144"], ["updated_at", "2019-12-11 23:58:18.119144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.122501"], ["last_sign_in_at", "2019-12-11 23:58:18.122501"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.123090"], ["id", 2139]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$48U4Gzz.z6R0eFwjuCMMv.t/CcIe3kFsJQ0jsAeoGTkrD8H1di3OC"], ["created_at", "2019-12-11 23:58:18.134161"], ["updated_at", "2019-12-11 23:58:18.134161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.136558"], ["updated_at", "2019-12-11 23:58:18.136558"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1817” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.138805"], ["last_sign_in_at", "2019-12-11 23:58:18.138805"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.139336"], ["id", 2140]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1817"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1817], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1817]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TrKCwXgKiLswQ6AED3jlHelMqtrI0SxJXWQ7pCyc6XWy6dqykm56y"], ["created_at", "2019-12-11 23:58:18.152153"], ["updated_at", "2019-12-11 23:58:18.152153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.154833"], ["updated_at", "2019-12-11 23:58:18.154833"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1818” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.156895"], ["last_sign_in_at", "2019-12-11 23:58:18.156895"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.157404"], ["id", 2141]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1818"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1818], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1818]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sD8DNPAU1tEgjonGr5ui9.WlUlnTMp/RME.x7FCFiyZHGfEh5j/qW"], ["created_at", "2019-12-11 23:58:18.171068"], ["updated_at", "2019-12-11 23:58:18.171068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.174402"], ["updated_at", "2019-12-11 23:58:18.174402"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1819” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.177864"], ["last_sign_in_at", "2019-12-11 23:58:18.177864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.178635"], ["id", 2142]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1819"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$47xaT/zI0Fm1dhCj/5qyfud7/l5M6ZlMzfz5HPGEM2psxmogKZoH."], ["created_at", "2019-12-11 23:58:18.188767"], ["updated_at", "2019-12-11 23:58:18.188767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-11 23:58:18.191066"], ["updated_at", "2019-12-11 23:58:18.191066"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1820” for 127.0.0.1 at 2019-12-11 20:58:18 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-11 23:58:18.194408"], ["last_sign_in_at", "2019-12-11 23:58:18.194408"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-11 23:58:18.195045"], ["id", 2143]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1820"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q0bqDDuYskzXabXQaKL9muwcDz8qXilD5OU9o/caau32IOllO9rZO"], ["created_at", "2019-12-12 00:23:42.078103"], ["updated_at", "2019-12-12 00:23:42.078103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.087236"], ["updated_at", "2019-12-12 00:23:42.087236"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2144], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered appointments/my_appointments.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 173ms (Views: 115.1ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sKqW80wPn2rbrDR99pQGFuK8qtvZ4L8KingqvW3dwCE7yyC7kkEgG"], ["created_at", "2019-12-12 00:23:42.271808"], ["updated_at", "2019-12-12 00:23:42.271808"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.274294"], ["updated_at", "2019-12-12 00:23:42.274294"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1822], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2145], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2145], ["room_id", 1822], ["created_at", "2019-12-12 00:23:42.315887"], ["updated_at", "2019-12-12 00:23:42.315887"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2145], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)

Appointment Exists (0.7ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2145], ["id", 1014], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7Wg3YttYmAm5jxQrDPI8P.qR./uS4KR6vjfdNXs35JeoSh3IamTPe"], ["created_at", "2019-12-12 00:23:42.332011"], ["updated_at", "2019-12-12 00:23:42.332011"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.334471"], ["updated_at", "2019-12-12 00:23:42.334471"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1823], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2146], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2146], ["room_id", 1823], ["created_at", "2019-12-12 00:23:42.338852"], ["updated_at", "2019-12-12 00:23:42.338852"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2146], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)

Appointment Exists (0.4ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2146], ["id", 1015], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9Z27z51usaM0xM316hkiZOBcd0N7typt3nUUEepPZbya2BB66mpEi"], ["created_at", "2019-12-12 00:23:42.351104"], ["updated_at", "2019-12-12 00:23:42.351104"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.353479"], ["updated_at", "2019-12-12 00:23:42.353479"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1824], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2147], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 3], ["user_id", 2147], ["room_id", 1824], ["created_at", "2019-12-12 00:23:42.357683"], ["updated_at", "2019-12-12 00:23:42.357683"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2147], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)

Appointment Exists (0.4ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2147], ["id", 1016], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$huKMEUPZx17HY5yW7A3D1e2QU1IdSqd0/8U2COQXd/I3RNks4imu2"], ["created_at", "2019-12-12 00:23:42.371754"], ["updated_at", "2019-12-12 00:23:42.371754"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.374166"], ["updated_at", "2019-12-12 00:23:42.374166"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1825"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1825], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1825')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.3ms)

Completed 200 OK in 110ms (Views: 76.1ms | ActiveRecord: 0.8ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/4WHHQtR9UiK7KSjCUVXDOYgSLEMt3xMt8Z8b8r7gHBicOlX4v8qC"], ["created_at", "2019-12-12 00:23:42.494251"], ["updated_at", "2019-12-12 00:23:42.494251"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.496682"], ["updated_at", "2019-12-12 00:23:42.496682"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1826], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2149], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2149], ["room_id", 1826], ["created_at", "2019-12-12 00:23:42.501306"], ["updated_at", "2019-12-12 00:23:42.501306"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1826"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1826], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1826')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.1ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PmxunayJyuuPjjC8CORr5u9Vhx6.o1wjuJJ6Koj/YC9Ofd/AAGIWm"], ["created_at", "2019-12-12 00:23:42.512748"], ["updated_at", "2019-12-12 00:23:42.512748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.515064"], ["updated_at", "2019-12-12 00:23:42.515064"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1827], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2150], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2150], ["room_id", 1827], ["created_at", "2019-12-12 00:23:42.519377"], ["updated_at", "2019-12-12 00:23:42.519377"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1827"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1827], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1827')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VlcDWXCR0UK/dwB2o3laIOg8UMXlQIYqcW6Pd9VMUFHimzzWSFw/i"], ["created_at", "2019-12-12 00:23:42.531889"], ["updated_at", "2019-12-12 00:23:42.531889"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.534228"], ["updated_at", "2019-12-12 00:23:42.534228"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1828], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2151], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2151], ["room_id", 1828], ["created_at", "2019-12-12 00:23:42.538752"], ["updated_at", "2019-12-12 00:23:42.538752"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1828"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1828], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1828')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6iyCirRVTG1JcpJz1m33P.hEnZmTpYPf.i5zNPvLI5b/zr2Mny.BS"], ["created_at", "2019-12-12 00:23:42.549956"], ["updated_at", "2019-12-12 00:23:42.549956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:42.552302"], ["updated_at", "2019-12-12 00:23:42.552302"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1829], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2152], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2152], ["room_id", 1829], ["created_at", "2019-12-12 00:23:42.556506"], ["updated_at", "2019-12-12 00:23:42.556506"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1829"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1829], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1829')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 109ms (Views: 77.2ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TWZ/m.hxXB.ljzvJRJhYVueds1fb0.fr.xrZ0SxPzEhop7yQikSh2"], ["created_at", "2019-12-12 00:23:43.156944"], ["updated_at", "2019-12-12 00:23:43.156944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.159276"], ["updated_at", "2019-12-12 00:23:43.159276"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.177158"], ["last_sign_in_at", "2019-12-12 00:23:43.177158"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.177885"], ["id", 2153]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1830"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1830], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2153], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2153], ["room_id", 1830], ["created_at", "2019-12-12 00:23:43.186112"], ["updated_at", "2019-12-12 00:23:43.186112"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1830], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3FOI1riH75ZRLoyKHOHzuOJVP9FfKFMLTJ99kHXKZW212n6S8pN/C"], ["created_at", "2019-12-12 00:23:43.195380"], ["updated_at", "2019-12-12 00:23:43.195380"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.197580"], ["updated_at", "2019-12-12 00:23:43.197580"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.199945"], ["last_sign_in_at", "2019-12-12 00:23:43.199945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.200555"], ["id", 2154]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1831"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1831], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2154], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2154], ["room_id", 1831], ["created_at", "2019-12-12 00:23:43.205523"], ["updated_at", "2019-12-12 00:23:43.205523"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$c6IVhaLEeW7ulWTUJ7cmEOIim/uKahKSxJV6Wl2haJcSqlYQtfhlG"], ["created_at", "2019-12-12 00:23:43.214292"], ["updated_at", "2019-12-12 00:23:43.214292"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.216628"], ["updated_at", "2019-12-12 00:23:43.216628"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.219230"], ["last_sign_in_at", "2019-12-12 00:23:43.219230"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.219787"], ["id", 2155]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1832"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1832], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xDy.Dxr/ZOtIXDV4FOis7OGWyb8BHIXNIB16ZcqOrT6fIeUd.swQu"], ["created_at", "2019-12-12 00:23:43.229767"], ["updated_at", "2019-12-12 00:23:43.229767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.232005"], ["updated_at", "2019-12-12 00:23:43.232005"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.234316"], ["last_sign_in_at", "2019-12-12 00:23:43.234316"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.234847"], ["id", 2156]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1833"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IgbA5du4gCIL0wTQbGurI.FqEP1WPfKDxHMHM4HeNrCcp/gVMi7L6"], ["created_at", "2019-12-12 00:23:43.244846"], ["updated_at", "2019-12-12 00:23:43.244846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.247147"], ["updated_at", "2019-12-12 00:23:43.247147"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1834], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2157], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2157], ["room_id", 1834], ["created_at", "2019-12-12 00:23:43.251277"], ["updated_at", "2019-12-12 00:23:43.251277"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1834” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.253723"], ["last_sign_in_at", "2019-12-12 00:23:43.253723"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.254273"], ["id", 2157]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1834"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1834], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1834')
Rendered appointments/show.html.erb within layouts/application (21.5ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 403ms (Views: 385.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$txIOYb5U6M32gDG1VQ8RreB5mjMnuAc3er6flVg.cvzA9BEtMp9YW"], ["created_at", "2019-12-12 00:23:43.666881"], ["updated_at", "2019-12-12 00:23:43.666881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.669126"], ["updated_at", "2019-12-12 00:23:43.669126"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1835], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2158], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2158], ["room_id", 1835], ["created_at", "2019-12-12 00:23:43.673188"], ["updated_at", "2019-12-12 00:23:43.673188"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1835], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2158], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2158], ["room_id", 1835], ["created_at", "2019-12-12 00:23:43.679224"], ["updated_at", "2019-12-12 00:23:43.679224"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.682019"], ["last_sign_in_at", "2019-12-12 00:23:43.682019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.682635"], ["id", 2158]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2158]]
Rendered appointments/my_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 4.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$h0974wKi2H7pHTmtINnZOe7A2JfaNbr9804l3upAMmbYXCtThCbke"], ["created_at", "2019-12-12 00:23:43.713195"], ["updated_at", "2019-12-12 00:23:43.713195"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.715548"], ["updated_at", "2019-12-12 00:23:43.715548"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1836], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2159], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2159], ["room_id", 1836], ["created_at", "2019-12-12 00:23:43.719651"], ["updated_at", "2019-12-12 00:23:43.719651"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1836], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2159], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2159], ["room_id", 1836], ["created_at", "2019-12-12 00:23:43.723771"], ["updated_at", "2019-12-12 00:23:43.723771"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.726493"], ["last_sign_in_at", "2019-12-12 00:23:43.726493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.727103"], ["id", 2159]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2159]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$w4qdC9YAekM8nR9IIFYBAOrwpb12E77nX0598utTneBR9AclZsPg."], ["created_at", "2019-12-12 00:23:43.741205"], ["updated_at", "2019-12-12 00:23:43.741205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.744276"], ["updated_at", "2019-12-12 00:23:43.744276"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1837], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2160], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2160], ["room_id", 1837], ["created_at", "2019-12-12 00:23:43.748815"], ["updated_at", "2019-12-12 00:23:43.748815"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/1028” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.751361"], ["last_sign_in_at", "2019-12-12 00:23:43.751361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.751898"], ["id", 2160]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"1028"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 1028], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 1028]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5TZSoSJ93wUu3BqBA64xYulIYU0dUZylo9Qjb6qCQYHXCbfHQY70m"], ["created_at", "2019-12-12 00:23:43.767064"], ["updated_at", "2019-12-12 00:23:43.767064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.769582"], ["last_sign_in_at", "2019-12-12 00:23:43.769582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.770132"], ["id", 2161]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 36ms (Views: 19.3ms | ActiveRecord: 0.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E7rXwCKfJjB5gryV5szVyuC0RcYBTWcOsk73EaKofBdKrjabEpkUK"], ["created_at", "2019-12-12 00:23:43.816595"], ["updated_at", "2019-12-12 00:23:43.816595"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.818947"], ["updated_at", "2019-12-12 00:23:43.818947"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1838], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2162], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2162], ["room_id", 1838], ["created_at", "2019-12-12 00:23:43.823244"], ["updated_at", "2019-12-12 00:23:43.823244"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1838], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2162], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2162], ["room_id", 1838], ["created_at", "2019-12-12 00:23:43.827730"], ["updated_at", "2019-12-12 00:23:43.827730"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.830242"], ["last_sign_in_at", "2019-12-12 00:23:43.830242"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.830790"], ["id", 2162]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1838], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2162], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2162], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VgPY88.cPP045fAGZ3TsN.ZG5FXwKs53Ho75hjutfP4eKI6bBQy22"], ["created_at", "2019-12-12 00:23:43.845344"], ["updated_at", "2019-12-12 00:23:43.845344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.847829"], ["updated_at", "2019-12-12 00:23:43.847829"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1839], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2163], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2163], ["room_id", 1839], ["created_at", "2019-12-12 00:23:43.851937"], ["updated_at", "2019-12-12 00:23:43.851937"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1839], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2163], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2163], ["room_id", 1839], ["created_at", "2019-12-12 00:23:43.856156"], ["updated_at", "2019-12-12 00:23:43.856156"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.859110"], ["last_sign_in_at", "2019-12-12 00:23:43.859110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.859763"], ["id", 2163]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1839], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2163], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2163], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4xdQpbVYT9HM0gNHHkWDNejgMNel7KZo9.jDgb5pf1R2RvcbnhsyO"], ["created_at", "2019-12-12 00:23:43.875873"], ["updated_at", "2019-12-12 00:23:43.875873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.878943"], ["updated_at", "2019-12-12 00:23:43.878943"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1840], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2164], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2164], ["room_id", 1840], ["created_at", "2019-12-12 00:23:43.883621"], ["updated_at", "2019-12-12 00:23:43.883621"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1840], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2164], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2164], ["room_id", 1840], ["created_at", "2019-12-12 00:23:43.888513"], ["updated_at", "2019-12-12 00:23:43.888513"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.891265"], ["last_sign_in_at", "2019-12-12 00:23:43.891265"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.891981"], ["id", 2164]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MjGWtoDrFbqEesSPUY5aNeOtIpKYB7oOertkVt1NEDgytsVnQUO4O"], ["created_at", "2019-12-12 00:23:43.904796"], ["updated_at", "2019-12-12 00:23:43.904796"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:43.907381"], ["updated_at", "2019-12-12 00:23:43.907381"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1841], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2165], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2165], ["room_id", 1841], ["created_at", "2019-12-12 00:23:43.912452"], ["updated_at", "2019-12-12 00:23:43.912452"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1841], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2165], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2165], ["room_id", 1841], ["created_at", "2019-12-12 00:23:43.917188"], ["updated_at", "2019-12-12 00:23:43.917188"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.919849"], ["last_sign_in_at", "2019-12-12 00:23:43.919849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.920464"], ["id", 2165]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$t71tbV6EtCbQsoZ36S93oustGfyO630nKingNmfOuUdkGbuyHdcJ2"], ["created_at", "2019-12-12 00:23:43.935777"], ["updated_at", "2019-12-12 00:23:43.935777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:23:43 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:43.938373"], ["last_sign_in_at", "2019-12-12 00:23:43.938373"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:43.938917"], ["id", 2166]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (8.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 65ms (Views: 48.7ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7r5yUkB603OVpJa/yW0Ogu6Y50zzunZHR4tmt6trik8PVo6Ap72Ca"], ["created_at", "2019-12-12 00:23:44.017040"], ["updated_at", "2019-12-12 00:23:44.017040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.019512"], ["last_sign_in_at", "2019-12-12 00:23:44.019512"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.020080"], ["id", 2167]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$M9ypB4sPC3JSQI3EpomMSuDc2XqouA.ZCCmLul0GiQHjIh4PYrCPy"], ["created_at", "2019-12-12 00:23:44.030738"], ["updated_at", "2019-12-12 00:23:44.030738"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.033219"], ["last_sign_in_at", "2019-12-12 00:23:44.033219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.033735"], ["id", 2168]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 3.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PIsYfnL4zvB29iuX2MDWH.dJEuuAUA7tuUWI7pzUvV9i2gOhtAG8."], ["created_at", "2019-12-12 00:23:44.062676"], ["updated_at", "2019-12-12 00:23:44.062676"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.065001"], ["last_sign_in_at", "2019-12-12 00:23:44.065001"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.065543"], ["id", 2169]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 12ms (Views: 11.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VSTNj/4NUicMQc3vIvqWNOR.P9QicTLE8ktWlypkNxCqu.3dp5j/q"], ["created_at", "2019-12-12 00:23:44.096090"], ["updated_at", "2019-12-12 00:23:44.096090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.098476"], ["updated_at", "2019-12-12 00:23:44.098476"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1842” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.100804"], ["last_sign_in_at", "2019-12-12 00:23:44.100804"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.101378"], ["id", 2170]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1842"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1842], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 19ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.NyzZkCoDIzpC9evC/8/G.SJaKrmyBFMO/UK2/45h/ymsFdWF6nPq"], ["created_at", "2019-12-12 00:23:44.129444"], ["updated_at", "2019-12-12 00:23:44.129444"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.131635"], ["updated_at", "2019-12-12 00:23:44.131635"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1843” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.133704"], ["last_sign_in_at", "2019-12-12 00:23:44.133704"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.134273"], ["id", 2171]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1843"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1843], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.143888"], ["updated_at", "2019-12-12 00:23:44.143888"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1844” for 127.0.0.1 at 2019-12-11 21:23:44 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1844"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GdMAkBIFuhXVbusLKeS53O54HgIH6C2lK/7GD/vgTjXuLkxqZYFBK"], ["created_at", "2019-12-12 00:23:44.153964"], ["updated_at", "2019-12-12 00:23:44.153964"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.156252"], ["updated_at", "2019-12-12 00:23:44.156252"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1845/edit” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.158475"], ["last_sign_in_at", "2019-12-12 00:23:44.158475"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.159296"], ["id", 2172]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1845"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1845], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 23ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BA3tOFwAA/veJX6/uvft.O5Ujr1tmM/3WlEjPTTzywmPL79p8E3OS"], ["created_at", "2019-12-12 00:23:44.191481"], ["updated_at", "2019-12-12 00:23:44.191481"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.194122"], ["updated_at", "2019-12-12 00:23:44.194122"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1846/edit” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.196393"], ["last_sign_in_at", "2019-12-12 00:23:44.196393"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.196960"], ["id", 2173]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1846"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1846], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.207868"], ["updated_at", "2019-12-12 00:23:44.207868"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1847” for 127.0.0.1 at 2019-12-11 21:23:44 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1847"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4DOBFjyM94TYy7THRg2Xnu9SiLzZOv5e6fTMp7uS2M7xgfCOL4QkS"], ["created_at", "2019-12-12 00:23:44.219680"], ["updated_at", "2019-12-12 00:23:44.219680"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.222364"], ["last_sign_in_at", "2019-12-12 00:23:44.222364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.222893"], ["id", 2174]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.226831"], ["updated_at", "2019-12-12 00:23:44.226831"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yFfywUXUlHrjlkhj2WPL.OqVgs6wnfo8ZVlV/BOi7EJeBYYHYzxva"], ["created_at", "2019-12-12 00:23:44.235600"], ["updated_at", "2019-12-12 00:23:44.235600"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.238441"], ["last_sign_in_at", "2019-12-12 00:23:44.238441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.238959"], ["id", 2175]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.242806"], ["updated_at", "2019-12-12 00:23:44.242806"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fWfp7TtX2PJJBGLv/.Hcpe6.oFQXDrAO1SwABGPbRcIZiboz2okFy"], ["created_at", "2019-12-12 00:23:44.251640"], ["updated_at", "2019-12-12 00:23:44.251640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.254511"], ["last_sign_in_at", "2019-12-12 00:23:44.254511"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.255109"], ["id", 2176]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OU50Ejxw6xFauz7QyO46lebYUKHoIm2kXq.21wF.qphFjgXhERo7."], ["created_at", "2019-12-12 00:23:44.267091"], ["updated_at", "2019-12-12 00:23:44.267091"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.269807"], ["last_sign_in_at", "2019-12-12 00:23:44.269807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.270328"], ["id", 2177]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.3ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ltjxYNYxrzp/edatQkh1s.8ImCvDVnHbM3QdrVN6Ti8zMttan8KOm"], ["created_at", "2019-12-12 00:23:44.282391"], ["updated_at", "2019-12-12 00:23:44.282391"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.285168"], ["last_sign_in_at", "2019-12-12 00:23:44.285168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.285707"], ["id", 2178]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2pmu8xxPAOytBrE79Yy7zu5yypZEgXIw6gBgg31fXXL37C0za7LDm"], ["created_at", "2019-12-12 00:23:44.297494"], ["updated_at", "2019-12-12 00:23:44.297494"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.299762"], ["updated_at", "2019-12-12 00:23:44.299762"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1850” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.302154"], ["last_sign_in_at", "2019-12-12 00:23:44.302154"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.302685"], ["id", 2179]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1850"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1850], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-12 00:23:44.306755"], ["id", 1850]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1850 Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6nfg70s64ja8gnvWAAnOKOOQnpL2dLSWiAOrDnKWdrRXs.YVvNMkO"], ["created_at", "2019-12-12 00:23:44.315763"], ["updated_at", "2019-12-12 00:23:44.315763"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.318161"], ["updated_at", "2019-12-12 00:23:44.318161"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1851” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.320644"], ["last_sign_in_at", "2019-12-12 00:23:44.320644"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.321259"], ["id", 2180]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1851"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1851], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-12 00:23:44.325509"], ["id", 1851]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1851 Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GiD1.mhgj/shgz3qZBUld.G8kd0HrrXzHCtDHyZgzOGoVLC2K72aG"], ["created_at", "2019-12-12 00:23:44.334940"], ["updated_at", "2019-12-12 00:23:44.334940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.337427"], ["updated_at", "2019-12-12 00:23:44.337427"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1852” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.339989"], ["last_sign_in_at", "2019-12-12 00:23:44.339989"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.340589"], ["id", 2181]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1852"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1852], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$78ZDOELrqf/oBCCJCBza0.DDofr3uuraCSWl2JoA02CFEQYZXyDBC"], ["created_at", "2019-12-12 00:23:44.356109"], ["updated_at", "2019-12-12 00:23:44.356109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.358708"], ["updated_at", "2019-12-12 00:23:44.358708"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1853” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.361653"], ["last_sign_in_at", "2019-12-12 00:23:44.361653"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.362228"], ["id", 2182]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1853"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1853], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aRR4tr66HRuWhlQ4xcOvi.0l0oCzpr593RBnDa0L8VZLUiMKchTnq"], ["created_at", "2019-12-12 00:23:44.377653"], ["updated_at", "2019-12-12 00:23:44.377653"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.380519"], ["last_sign_in_at", "2019-12-12 00:23:44.380519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.381361"], ["id", 2183]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MGfe33eVh.zx9K9foKfWAOwtVEbs45.ljCZspm7ASvHFpUpYy03TW"], ["created_at", "2019-12-12 00:23:44.391484"], ["updated_at", "2019-12-12 00:23:44.391484"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.394338"], ["updated_at", "2019-12-12 00:23:44.394338"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1854” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.396424"], ["last_sign_in_at", "2019-12-12 00:23:44.396424"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.396948"], ["id", 2184]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1854"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1854], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1854]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JkV8YvTSacYhs0mKAyS2bO9/mXXUYAgnmn498L1DhroJcU46Jzxoq"], ["created_at", "2019-12-12 00:23:44.408691"], ["updated_at", "2019-12-12 00:23:44.408691"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.411406"], ["updated_at", "2019-12-12 00:23:44.411406"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1855” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.413840"], ["last_sign_in_at", "2019-12-12 00:23:44.413840"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.414449"], ["id", 2185]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1855"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1855], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1855]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.1ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dOKYmOnaGkVwTK6f6SsdzOETVOi9RycWqmk1y2nwcMEAk7Teqh.pK"], ["created_at", "2019-12-12 00:23:44.426914"], ["updated_at", "2019-12-12 00:23:44.426914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.429257"], ["updated_at", "2019-12-12 00:23:44.429257"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1856” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.431315"], ["last_sign_in_at", "2019-12-12 00:23:44.431315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.431881"], ["id", 2186]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1856"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PwcTL6OjXkbvSlY.BJRU2u4ZOTmdYOeRQLS5.eIiOV6dd3Vg1toie"], ["created_at", "2019-12-12 00:23:44.441230"], ["updated_at", "2019-12-12 00:23:44.441230"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:23:44.444094"], ["updated_at", "2019-12-12 00:23:44.444094"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1857” for 127.0.0.1 at 2019-12-11 21:23:44 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:23:44.446224"], ["last_sign_in_at", "2019-12-12 00:23:44.446224"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:23:44.446937"], ["id", 2187]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1857"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$4HT254Ofzqbv72/62KYfxOhxuiGrKrD7eAWSEH1GD/K0XqltCrDmy"], ["created_at", "2019-12-12 00:24:00.906153"], ["updated_at", "2019-12-12 00:24:00.906153"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:00 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (45.6ms)
Rendered users/sessions/new.html.erb within layouts/application (342.1ms)

Completed 200 OK in 503ms (Views: 495.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:01.547141"], ["last_sign_in_at", "2019-12-12 00:24:01.547141"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:01.560600"], ["id", 2188]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 185ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2188], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 56ms (Views: 36.9ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2188], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2188], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 72ms (Views: 44.4ms | ActiveRecord: 3.1ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2188], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:24:01.884530"], ["updated_at", "2019-12-12 00:24:01.884530"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2188], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$rbgCGZEH/kLBNYa9Zz6KfOOhJvyMZMpDz57B1d2wAlcO3GwPf6Fgq"], ["created_at", "2019-12-12 00:24:01.904187"], ["updated_at", "2019-12-12 00:24:01.904187"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:01.921038"], ["last_sign_in_at", "2019-12-12 00:24:01.921038"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:01.921638"], ["id", 2189]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2189], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2189], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by RoomsController#new as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2189], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.6ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2189], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:24:01.967956"], ["updated_at", "2019-12-12 00:24:01.967956"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2189], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.6ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:01 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.1ms)

Completed 200 OK in 36ms (Views: 19.6ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$.4Qro1HGATh3wbIT5veGPu5oS0GkYj/ziyCyV4YQQR8JSf5spVHQm"], ["created_at", "2019-12-12 00:24:02.042701"], ["updated_at", "2019-12-12 00:24:02.042701"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.7ms)

Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:02.070407"], ["last_sign_in_at", "2019-12-12 00:24:02.070407"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.070974"], ["id", 2190]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2190], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.6ms)

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$crUiYIFPA6BAEnKgqjPvcOw3MBfeW4i84Ww3luaDlRo7X2TPL8JHi"], ["created_at", "2019-12-12 00:24:02.119993"], ["updated_at", "2019-12-12 00:24:02.119993"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 4ms (ActiveRecord: 0.6ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$l3o5GV7f41iG5b.MDkHPPeVKY/V1dNtUrB9Pf5A9Ykw.KdZze6eEa"], ["created_at", "2019-12-12 00:24:02.165884"], ["updated_at", "2019-12-12 00:24:02.165884"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:02.194359"], ["last_sign_in_at", "2019-12-12 00:24:02.194359"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.195641"], ["id", 2192]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2192], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2192], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Appointment Load (1.2ms)  SELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)  [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
Rendered today_appointments/index.html.erb within layouts/application (2.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2192], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 76ms (Views: 41.7ms | ActiveRecord: 2.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$sk8vEGjioHbuifbmotnS.ee09jJROksCXpUUTa9fiMGPY9SdAsiXS"], ["created_at", "2019-12-12 00:24:02.305183"], ["updated_at", "2019-12-12 00:24:02.305183"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:02.321900"], ["last_sign_in_at", "2019-12-12 00:24:02.321900"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.322486"], ["id", 2193]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2193], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2193], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2193], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.5ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"foobar", "location"=>"fooland"}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2193], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "foobar"], ["location", "fooland"], ["created_at", "2019-12-12 00:24:02.358114"], ["updated_at", "2019-12-12 00:24:02.358114"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2193], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2193], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 22ms (Views: 4.1ms | ActiveRecord: 1.0ms) Started GET “/appointments/1860” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1860"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1860], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1860')
Rendered appointments/show.html.erb within layouts/application (10.2ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2193], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 73ms (Views: 49.5ms | ActiveRecord: 1.4ms) Started POST “/appointments.1860” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-11", "start_time"=>"18:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2193], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1860], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2193], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "18:00:00"], ["status", 1], ["user_id", 2193], ["room_id", 1860], ["created_at", "2019-12-12 00:24:02.540509"], ["updated_at", "2019-12-12 00:24:02.540509"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 45ms (ActiveRecord: 4.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2193], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)  [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1860], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2193], ["LIMIT", 1]]
Rendered today_appointments/index.html.erb within layouts/application (4.5ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2193], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 2.0ms)

 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.4ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$yq/zg.85uHz5gL0LtiILOOxVfwBs17qz3AfJf.rbE0kcfzsqU01Em"], ["created_at", "2019-12-12 00:24:02.597762"], ["updated_at", "2019-12-12 00:24:02.597762"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:02.615638"], ["last_sign_in_at", "2019-12-12 00:24:02.615638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.616321"], ["id", 2194]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2194], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:24:02.628439"], ["updated_at", "2019-12-12 00:24:02.628439"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:02.630634"], ["updated_at", "2019-12-12 00:24:02.630634"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1862], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2194], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2194], ["room_id", 1862], ["created_at", "2019-12-12 00:24:02.640178"], ["updated_at", "2019-12-12 00:24:02.640178"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2194], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1862], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.5ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2194], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 25ms (Views: 6.1ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2194], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 23ms (Views: 3.6ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$hfRfwdQFrk2Pzj7umECOku8Z2vWStcXWds3GzM0e9WB6i6kqUsfS."], ["created_at", "2019-12-12 00:24:02.719226"], ["updated_at", "2019-12-12 00:24:02.719226"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:02.734074"], ["last_sign_in_at", "2019-12-12 00:24:02.734074"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.734610"], ["id", 2195]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2195], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:24:02.743608"], ["updated_at", "2019-12-12 00:24:02.743608"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:02.745272"], ["updated_at", "2019-12-12 00:24:02.745272"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1864], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2195], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2195], ["room_id", 1864], ["created_at", "2019-12-12 00:24:02.749697"], ["updated_at", "2019-12-12 00:24:02.749697"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2195], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1864], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.5ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2195], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2195], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$K4d8zbxz51GYZs6f7/AX3.DrY5M.fWpoYndCK68.K/JPPwmPvDEAa"], ["created_at", "2019-12-12 00:24:02.777966"], ["updated_at", "2019-12-12 00:24:02.777966"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:02.791645"], ["last_sign_in_at", "2019-12-12 00:24:02.791645"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.792242"], ["id", 2196]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2196], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:24:02.801815"], ["updated_at", "2019-12-12 00:24:02.801815"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:02.803748"], ["updated_at", "2019-12-12 00:24:02.803748"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1866], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2196], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2196], ["room_id", 1866], ["created_at", "2019-12-12 00:24:02.808539"], ["updated_at", "2019-12-12 00:24:02.808539"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2196], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1866], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.7ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2196], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2196], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$McSc9kigiAYbC3XVWKN3Gul2YSKqhloN4vMVbvkirYSOYjTEMKIiW"], ["created_at", "2019-12-12 00:24:02.846188"], ["updated_at", "2019-12-12 00:24:02.846188"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:02.863499"], ["last_sign_in_at", "2019-12-12 00:24:02.863499"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.864009"], ["id", 2197]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2197], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:24:02.872382"], ["updated_at", "2019-12-12 00:24:02.872382"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:02.873914"], ["updated_at", "2019-12-12 00:24:02.873914"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1868], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2197], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2197], ["room_id", 1868], ["created_at", "2019-12-12 00:24:02.878565"], ["updated_at", "2019-12-12 00:24:02.878565"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2197], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1868], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.6ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2197], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2197], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$RUVZKMhC0QpZR5Z99HYtdegqftlax7XSYmkE7ZOmkxT.63zLSyYxK"], ["created_at", "2019-12-12 00:24:02.909139"], ["updated_at", "2019-12-12 00:24:02.909139"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:02.922607"], ["last_sign_in_at", "2019-12-12 00:24:02.922607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:02.923197"], ["id", 2198]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2198], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 20ms (Views: 19.5ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:02.961691"], ["updated_at", "2019-12-12 00:24:02.961691"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1869], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2198], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2198], ["room_id", 1869], ["created_at", "2019-12-12 00:24:02.966690"], ["updated_at", "2019-12-12 00:24:02.966690"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:24:02 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2198], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2198]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 38ms (Views: 4.3ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/1042” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"1042"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 1042], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 1042]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2198], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$D42MlhUBi7M3xVBOSTcj3u3.5jkPawUC2Ijt8Q8LRprL2tUBxWvT2"], ["created_at", "2019-12-12 00:24:03.029873"], ["updated_at", "2019-12-12 00:24:03.029873"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.043017"], ["last_sign_in_at", "2019-12-12 00:24:03.043017"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.043911"], ["id", 2199]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2199], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:03.053260"], ["updated_at", "2019-12-12 00:24:03.053260"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1870], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2199], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2199], ["room_id", 1870], ["created_at", "2019-12-12 00:24:03.058518"], ["updated_at", "2019-12-12 00:24:03.058518"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2199], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2199]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/1043” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"1043"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 1043], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 1043]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2199], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$9s..xonhKImGsF4v4BYdne2yJXhc7GcndcHPSv8hyNqc/FEGtrslm"], ["created_at", "2019-12-12 00:24:03.091912"], ["updated_at", "2019-12-12 00:24:03.091912"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.110239"], ["last_sign_in_at", "2019-12-12 00:24:03.110239"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.110936"], ["id", 2200]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2200], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.131443"], ["updated_at", "2019-12-12 00:24:03.131443"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1871], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2200], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2200], ["room_id", 1871], ["created_at", "2019-12-12 00:24:03.136332"], ["updated_at", "2019-12-12 00:24:03.136332"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2200], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2200]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$fg3yNLfDoHWPfwkPLNkPR.9e2/zyhzDWnY7kWRkx5TQ3t7dTvoO6K"], ["created_at", "2019-12-12 00:24:03.156580"], ["updated_at", "2019-12-12 00:24:03.156580"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.170461"], ["last_sign_in_at", "2019-12-12 00:24:03.170461"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.171051"], ["id", 2201]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2201], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:24:03.180760"], ["updated_at", "2019-12-12 00:24:03.180760"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1872], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2201], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2201], ["room_id", 1872], ["created_at", "2019-12-12 00:24:03.185801"], ["updated_at", "2019-12-12 00:24:03.185801"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2201], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2201]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$/mqdE1vhQ4h3t3UnuN4YgOx6GwU1K3Nswj5oxdLh/Hya3460YnUna"], ["created_at", "2019-12-12 00:24:03.209561"], ["updated_at", "2019-12-12 00:24:03.209561"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.222855"], ["last_sign_in_at", "2019-12-12 00:24:03.222855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.223429"], ["id", 2202]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2202], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:03.237302"], ["updated_at", "2019-12-12 00:24:03.237302"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.239193"], ["updated_at", "2019-12-12 00:24:03.239193"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2202], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started GET “/appointments/1873” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1873"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1873], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1873')
Rendered appointments/show.html.erb within layouts/application (1.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2202], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 1.0ms) Started POST “/appointments.1873” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-12", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2202], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1873], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2202], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2202], ["room_id", 1873], ["created_at", "2019-12-12 00:24:03.281077"], ["updated_at", "2019-12-12 00:24:03.281077"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2202], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$fjo5x0.zojL2ijCMAWKQx.tWoIprSgINmZKCLx91IUNnoW/XsUBNW"], ["created_at", "2019-12-12 00:24:03.396236"], ["updated_at", "2019-12-12 00:24:03.396236"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.410654"], ["last_sign_in_at", "2019-12-12 00:24:03.410654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.411414"], ["id", 2203]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2203], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:03.429574"], ["updated_at", "2019-12-12 00:24:03.429574"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.431438"], ["updated_at", "2019-12-12 00:24:03.431438"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2203], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.8ms) Started GET “/appointments/1875” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1875"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1875], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1875')
Rendered appointments/show.html.erb within layouts/application (1.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2203], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 1.1ms) Started POST “/appointments.1875” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2203], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2203], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$s4wZlgBgJH2J7eElLwG92esyp9IicxT7wiGw/SeBEhmDI1Yz..ouy"], ["created_at", "2019-12-12 00:24:03.486876"], ["updated_at", "2019-12-12 00:24:03.486876"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.501095"], ["last_sign_in_at", "2019-12-12 00:24:03.501095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.501692"], ["id", 2204]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2204], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:24:03.513652"], ["updated_at", "2019-12-12 00:24:03.513652"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2204], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2204], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.8ms) Started DELETE “/rooms/1877” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1877"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2204], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1877], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1877]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2204], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$i2aLJ7gd89PPMy0gelAU0u4cSuKKm8arAySpsOMbIphqySZwHe.7q"], ["created_at", "2019-12-12 00:24:03.557009"], ["updated_at", "2019-12-12 00:24:03.557009"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:24:03.559071"], ["updated_at", "2019-12-12 00:24:03.559071"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.586364"], ["last_sign_in_at", "2019-12-12 00:24:03.586364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.586942"], ["id", 2205]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2205], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2205], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started GET “/rooms/1878/edit” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1878"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2205], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1878], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.5ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/1878” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"1878"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2205], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1878], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-12-12 00:24:03.658345"], ["id", 1878]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1878 Completed 302 Found in 9ms (ActiveRecord: 1.7ms) Started GET “/rooms/1878” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1878"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2205], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1878], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 20ms (Views: 2.1ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$7Ta.oRmAJauuf.0g6X1y4O4dt.KpLk3WHAfhaTvAiDo0tCNI.jgOK"], ["created_at", "2019-12-12 00:24:03.701087"], ["updated_at", "2019-12-12 00:24:03.701087"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.714526"], ["last_sign_in_at", "2019-12-12 00:24:03.714526"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.715134"], ["id", 2206]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2206], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:03.728952"], ["updated_at", "2019-12-12 00:24:03.728952"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.730851"], ["updated_at", "2019-12-12 00:24:03.730851"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1880], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2206], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "18:00:00"], ["user_id", 2206], ["room_id", 1880], ["created_at", "2019-12-12 00:24:03.739708"], ["updated_at", "2019-12-12 00:24:03.739708"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2206], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms) Started GET “/rooms_available/1879” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1879"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1879], ["LIMIT", 1]]
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1879')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.9ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2206], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 62ms (Views: 41.4ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$hro/PvgHPClPpOIH.FDhOedFVRFE0b4QszIIpGocyJ7kzWIAx2JW2"], ["created_at", "2019-12-12 00:24:03.838615"], ["updated_at", "2019-12-12 00:24:03.838615"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.853070"], ["last_sign_in_at", "2019-12-12 00:24:03.853070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.853717"], ["id", 2207]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2207], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:03.866886"], ["updated_at", "2019-12-12 00:24:03.866886"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.868847"], ["updated_at", "2019-12-12 00:24:03.868847"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2207], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started GET “/rooms_available/1881” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1881"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1881], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1881')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2207], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$rYhpSRJCXRxa6NMJr3aNLeAEcTQSaFm4A4UbF4oRmKocGYEqLrKZO"], ["created_at", "2019-12-12 00:24:03.912694"], ["updated_at", "2019-12-12 00:24:03.912694"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.926928"], ["last_sign_in_at", "2019-12-12 00:24:03.926928"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.927668"], ["id", 2208]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2208], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:03.940565"], ["updated_at", "2019-12-12 00:24:03.940565"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:03.942676"], ["updated_at", "2019-12-12 00:24:03.942676"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2208], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$cCJN1IA0cfNxt4IedpGwvOktPE7G0ykRuKLNakzFq84pNA08X.AZK"], ["created_at", "2019-12-12 00:24:03.970977"], ["updated_at", "2019-12-12 00:24:03.970977"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:03.988391"], ["last_sign_in_at", "2019-12-12 00:24:03.988391"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:03.988874"], ["id", 2209]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:24:03 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2209], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:24:04.000222"], ["updated_at", "2019-12-12 00:24:04.000222"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:24:04.001759"], ["updated_at", "2019-12-12 00:24:04.001759"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2209], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$Po9vBRmhKbDt68Anr1AqnOs0gZI8WdOtnTuDAdzOxLFPZkxLs8v6O"], ["created_at", "2019-12-12 00:24:04.029736"], ["updated_at", "2019-12-12 00:24:04.029736"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:04.057558"], ["last_sign_in_at", "2019-12-12 00:24:04.057558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:04.058151"], ["id", 2210]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2210], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.3ms)
Rendered users/registrations/new.html.erb within layouts/application (18.0ms)

Completed 200 OK in 115ms (Views: 114.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$.73LFo3PRe0BRtGCEhnbLee8Nu0cwgSIfe5LZ9gEP67sxJK9fZlU2"], ["created_at", "2019-12-12 00:24:04.261319"], ["updated_at", "2019-12-12 00:24:04.261319"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:24:04.263208"], ["last_sign_in_at", "2019-12-12 00:24:04.263208"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:24:04.263753"], ["id", 2211]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 89ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2211], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$kvAg4nyYo6H1LzJFbLFApOPj1rRhJ1whQAfLoZ2e0BTu6Cxrxc/.S"], ["created_at", "2019-12-12 00:24:04.364902"], ["updated_at", "2019-12-12 00:24:04.364902"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:24:04.392796"], ["last_sign_in_at", "2019-12-12 00:24:04.392796"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:24:04.393593"], ["id", 2212]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2212], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/users/2212/edit” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"2212"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2212], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (6.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 0.6ms) Started PUT “/users/2212” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"2212"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2212], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2212], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 2212], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-12-12 00:24:04.462826"], ["id", 2212]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 159ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:24:04 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2212], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (1.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$8qRtQk39OjVjNqukAS8lguHw7Ozi16S1LM8kyIihWBCG72Wmj/6uW"], ["created_at", "2019-12-12 00:25:46.953102"], ["updated_at", "2019-12-12 00:25:46.953102"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:46 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (44.7ms)
Rendered users/sessions/new.html.erb within layouts/application (340.8ms)

Completed 200 OK in 504ms (Views: 496.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:47.548596"], ["last_sign_in_at", "2019-12-12 00:25:47.548596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:47.562157"], ["id", 2213]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 179ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2213], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 56ms (Views: 36.8ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2213], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by RoomsController#new as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2213], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 74ms (Views: 44.4ms | ActiveRecord: 3.3ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2213], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (1.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:25:47.880743"], ["updated_at", "2019-12-12 00:25:47.880743"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2213], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.4ms)  COMMIT
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$61/n9uNSehfKTrx.ATu.xuDydWCXUQ9vEXwOHPein.ydj4aR9OISK"], ["created_at", "2019-12-12 00:25:47.901062"], ["updated_at", "2019-12-12 00:25:47.901062"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:47.917985"], ["last_sign_in_at", "2019-12-12 00:25:47.917985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:47.918625"], ["id", 2214]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2214], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2214], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by RoomsController#new as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2214], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2214], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:25:47.964012"], ["updated_at", "2019-12-12 00:25:47.964012"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2214], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:47 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.2ms)

Completed 200 OK in 36ms (Views: 19.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$LSbb88QmPC./S/ADzff2zeePO0XwbIgH9emRJ.V.X4555JHAxHQ3O"], ["created_at", "2019-12-12 00:25:48.036768"], ["updated_at", "2019-12-12 00:25:48.036768"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.3ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:48.064522"], ["last_sign_in_at", "2019-12-12 00:25:48.064522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.065177"], ["id", 2215]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2215], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$xWVD60pOCped/ykODzLcL.wYUy8ROowPcwDa0vn2DAv5YOSD7fYye"], ["created_at", "2019-12-12 00:25:48.093553"], ["updated_at", "2019-12-12 00:25:48.093553"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$9Zsck6s0cxj88HSBjHc.TOWNQcjGwXYonLfstWv6HsYJ19E6y2K5e"], ["created_at", "2019-12-12 00:25:48.139396"], ["updated_at", "2019-12-12 00:25:48.139396"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:48.168736"], ["last_sign_in_at", "2019-12-12 00:25:48.168736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.169662"], ["id", 2217]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2217], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2217], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)  [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
Rendered today_appointments/index.html.erb within layouts/application (2.0ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2217], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 75ms (Views: 41.8ms | ActiveRecord: 2.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$nAOSDdZ38OKZSKLktWWH..wa00p8PpLVlBuDgiM9bDTLM46e4wThC"], ["created_at", "2019-12-12 00:25:48.277484"], ["updated_at", "2019-12-12 00:25:48.277484"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:48.295650"], ["last_sign_in_at", "2019-12-12 00:25:48.295650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.296599"], ["id", 2218]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2218], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2218], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by RoomsController#new as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2218], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.6ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"foobar", "location"=>"fooland"}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2218], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "foobar"], ["location", "fooland"], ["created_at", "2019-12-12 00:25:48.332947"], ["updated_at", "2019-12-12 00:25:48.332947"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2218], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2218], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 22ms (Views: 3.6ms | ActiveRecord: 1.0ms) Started GET “/appointments/1889” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1889"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1889], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1889')
Rendered appointments/show.html.erb within layouts/application (10.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2218], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 74ms (Views: 50.0ms | ActiveRecord: 1.4ms) Started POST “/appointments.1889” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-11", "start_time"=>"18:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2218], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1889], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2218], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "18:00:00"], ["status", 1], ["user_id", 2218], ["room_id", 1889], ["created_at", "2019-12-12 00:25:48.511762"], ["updated_at", "2019-12-12 00:25:48.511762"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 41ms (ActiveRecord: 3.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2218], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)  [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1889], ["LIMIT", 1]]
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2218], ["LIMIT", 1]]
Rendered today_appointments/index.html.erb within layouts/application (3.6ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2218], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 1.6ms)

 (0.5ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$RHY/Uru5Iy1C4bjqYX5zYuIHi0FsP/N46xOiseLEZJ9e1jwCqoATO"], ["created_at", "2019-12-12 00:25:48.561017"], ["updated_at", "2019-12-12 00:25:48.561017"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:48.577471"], ["last_sign_in_at", "2019-12-12 00:25:48.577471"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.578051"], ["id", 2219]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2219], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:25:48.589800"], ["updated_at", "2019-12-12 00:25:48.589800"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:48.592313"], ["updated_at", "2019-12-12 00:25:48.592313"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1891], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2219], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2219], ["room_id", 1891], ["created_at", "2019-12-12 00:25:48.602194"], ["updated_at", "2019-12-12 00:25:48.602194"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2219], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1891], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms)
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2219], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 26ms (Views: 6.0ms | ActiveRecord: 1.6ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.6ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2219], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 22ms (Views: 3.4ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Aov.XLeRpgLlTZfgzLfnSOC/YLzlHV4o0lJKMZEWhFWpxim6.uaha"], ["created_at", "2019-12-12 00:25:48.680952"], ["updated_at", "2019-12-12 00:25:48.680952"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:48.695313"], ["last_sign_in_at", "2019-12-12 00:25:48.695313"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.696047"], ["id", 2220]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2220], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:25:48.705518"], ["updated_at", "2019-12-12 00:25:48.705518"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:48.707530"], ["updated_at", "2019-12-12 00:25:48.707530"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1893], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2220], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2220], ["room_id", 1893], ["created_at", "2019-12-12 00:25:48.712655"], ["updated_at", "2019-12-12 00:25:48.712655"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2220], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1893], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.8ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2220], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 1.1ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2220], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$uYBg9Xa/1TZ9njjJFB25r.qBF3bjV/ugar37if8.t1guCnFnUso2W"], ["created_at", "2019-12-12 00:25:48.742919"], ["updated_at", "2019-12-12 00:25:48.742919"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:48.758846"], ["last_sign_in_at", "2019-12-12 00:25:48.758846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.759506"], ["id", 2221]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2221], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:25:48.769479"], ["updated_at", "2019-12-12 00:25:48.769479"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:48.771307"], ["updated_at", "2019-12-12 00:25:48.771307"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1895], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2221], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2221], ["room_id", 1895], ["created_at", "2019-12-12 00:25:48.776323"], ["updated_at", "2019-12-12 00:25:48.776323"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2221], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1895], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.6ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2221], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.1ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2221], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$qLh7X8B9sjndjIvj9n3TWe6P/P4ohSkmMPcib7GXIcIdxKJdUE8Lm"], ["created_at", "2019-12-12 00:25:48.815551"], ["updated_at", "2019-12-12 00:25:48.815551"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:48.833199"], ["last_sign_in_at", "2019-12-12 00:25:48.833199"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.833753"], ["id", 2222]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2222], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:25:48.842519"], ["updated_at", "2019-12-12 00:25:48.842519"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:48.844328"], ["updated_at", "2019-12-12 00:25:48.844328"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1897], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2222], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2222], ["room_id", 1897], ["created_at", "2019-12-12 00:25:48.849392"], ["updated_at", "2019-12-12 00:25:48.849392"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2222], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1897], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.5ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2222], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2222], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$rcV7RpTlfvfDHoZ1zpPlzu/4ZpslbkxGzustJuOTFIFAndldjrF.m"], ["created_at", "2019-12-12 00:25:48.880031"], ["updated_at", "2019-12-12 00:25:48.880031"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:48.893242"], ["last_sign_in_at", "2019-12-12 00:25:48.893242"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:48.893856"], ["id", 2223]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2223], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:48.931782"], ["updated_at", "2019-12-12 00:25:48.931782"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1898], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2223], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2223], ["room_id", 1898], ["created_at", "2019-12-12 00:25:48.936321"], ["updated_at", "2019-12-12 00:25:48.936321"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2223], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2223]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 38ms (Views: 4.2ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/1053” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"1053"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 1053], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 1053]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2223], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$ulAyK8Ty0lRLQ9WqNk6tCeNCabILMEsfyks3CR5hi57rNOa5Mfpz."], ["created_at", "2019-12-12 00:25:48.999022"], ["updated_at", "2019-12-12 00:25:48.999022"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.012051"], ["last_sign_in_at", "2019-12-12 00:25:49.012051"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.012948"], ["id", 2224]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2224], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:49.022973"], ["updated_at", "2019-12-12 00:25:49.022973"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1899], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2224], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2224], ["room_id", 1899], ["created_at", "2019-12-12 00:25:49.028345"], ["updated_at", "2019-12-12 00:25:49.028345"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2224], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2224]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/1054” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"1054"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 1054], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 1054]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2224], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$d3yC5YZJEk6PHR6g5X5wXO/AuB6pUYY8UDpdv77LJr8rBRs.RDbJ6"], ["created_at", "2019-12-12 00:25:49.061387"], ["updated_at", "2019-12-12 00:25:49.061387"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.080559"], ["last_sign_in_at", "2019-12-12 00:25:49.080559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.081207"], ["id", 2225]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2225], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.101560"], ["updated_at", "2019-12-12 00:25:49.101560"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1900], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2225], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2225], ["room_id", 1900], ["created_at", "2019-12-12 00:25:49.106566"], ["updated_at", "2019-12-12 00:25:49.106566"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2225], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2225]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$KZNggL5Iwk7RZzzZD0r4huAo7sJJ4/DTiOiSK4C9WL/OzHvj04Yne"], ["created_at", "2019-12-12 00:25:49.127698"], ["updated_at", "2019-12-12 00:25:49.127698"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.141211"], ["last_sign_in_at", "2019-12-12 00:25:49.141211"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.141824"], ["id", 2226]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2226], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:25:49.151638"], ["updated_at", "2019-12-12 00:25:49.151638"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1901], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2226], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2226], ["room_id", 1901], ["created_at", "2019-12-12 00:25:49.156845"], ["updated_at", "2019-12-12 00:25:49.156845"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2226], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2226]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$05Q/Crq7Vwo9.bXNf1q2yOuRL7/vDt5r3hB.lYv5hGrKpxQ8Q5xAW"], ["created_at", "2019-12-12 00:25:49.179920"], ["updated_at", "2019-12-12 00:25:49.179920"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.193869"], ["last_sign_in_at", "2019-12-12 00:25:49.193869"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.194542"], ["id", 2227]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.7ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2227], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.208639"], ["updated_at", "2019-12-12 00:25:49.208639"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.210554"], ["updated_at", "2019-12-12 00:25:49.210554"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2227], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.9ms) Started GET “/appointments/1902” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1902"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1902], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1902')
Rendered appointments/show.html.erb within layouts/application (1.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2227], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 1.0ms) Started POST “/appointments.1902” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-12", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2227], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1902], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2227], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2227], ["room_id", 1902], ["created_at", "2019-12-12 00:25:49.253080"], ["updated_at", "2019-12-12 00:25:49.253080"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2227], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$nozIbW6uQykvqe71.KT4BOHHpOe/bXCR/NYnlofRyffyW0woMll86"], ["created_at", "2019-12-12 00:25:49.271199"], ["updated_at", "2019-12-12 00:25:49.271199"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.285061"], ["last_sign_in_at", "2019-12-12 00:25:49.285061"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.285620"], ["id", 2228]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2228], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.299172"], ["updated_at", "2019-12-12 00:25:49.299172"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.300996"], ["updated_at", "2019-12-12 00:25:49.300996"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2228], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 1.0ms) Started GET “/appointments/1904” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1904"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1904], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1904')
Rendered appointments/show.html.erb within layouts/application (1.7ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2228], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 1.1ms) Started POST “/appointments.1904” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2228], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2228], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$j5hepqZk2aggb5gpjZEEV.54t.Cyb9bFzdN/iHRmNiBVn7lKKbx92"], ["created_at", "2019-12-12 00:25:49.360874"], ["updated_at", "2019-12-12 00:25:49.360874"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.374177"], ["last_sign_in_at", "2019-12-12 00:25:49.374177"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.374958"], ["id", 2229]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2229], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:25:49.386895"], ["updated_at", "2019-12-12 00:25:49.386895"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2229], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2229], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/1906” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1906"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2229], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1906], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1906]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2229], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$utLoIn9Y0cZh/7moJ7/AcOCfTL/AfB579L9UStrLup7xFtb2d8rTy"], ["created_at", "2019-12-12 00:25:49.430389"], ["updated_at", "2019-12-12 00:25:49.430389"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:25:49.432661"], ["updated_at", "2019-12-12 00:25:49.432661"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.459074"], ["last_sign_in_at", "2019-12-12 00:25:49.459074"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.459711"], ["id", 2230]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2230], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2230], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms) Started GET “/rooms/1907/edit” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1907"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2230], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1907], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 21ms (Views: 3.4ms | ActiveRecord: 0.6ms) Started PATCH “/rooms/1907” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"1907"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2230], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1907], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-12-12 00:25:49.525826"], ["id", 1907]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1907 Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/rooms/1907” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1907"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2230], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1907], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$xJHNWTjfczo5u/HTVFvpL.pRbKgy1D3M5xcoOWX.7qH/YIIFWyT4S"], ["created_at", "2019-12-12 00:25:49.571011"], ["updated_at", "2019-12-12 00:25:49.571011"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.584817"], ["last_sign_in_at", "2019-12-12 00:25:49.584817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.585439"], ["id", 2231]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2231], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.599942"], ["updated_at", "2019-12-12 00:25:49.599942"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.602341"], ["updated_at", "2019-12-12 00:25:49.602341"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1909], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2231], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "18:00:00"], ["user_id", 2231], ["room_id", 1909], ["created_at", "2019-12-12 00:25:49.611776"], ["updated_at", "2019-12-12 00:25:49.611776"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2231], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.7ms) Started GET “/rooms_available/1908” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1908"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1908], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1908')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.7ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2231], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 60ms (Views: 40.9ms | ActiveRecord: 1.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8/MTcOMWEf3h06jOuu51y.F1OkFm.vFVTwY0uS93RCRaKgYvhOcV6"], ["created_at", "2019-12-12 00:25:49.709269"], ["updated_at", "2019-12-12 00:25:49.709269"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.722600"], ["last_sign_in_at", "2019-12-12 00:25:49.722600"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.723154"], ["id", 2232]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2232], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.736670"], ["updated_at", "2019-12-12 00:25:49.736670"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.738596"], ["updated_at", "2019-12-12 00:25:49.738596"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2232], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.9ms) Started GET “/rooms_available/1910” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1910"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1910], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1910')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2232], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 1.1ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$.uutXUis.noq7TMSakowIuZTJk3sJtv0GKTFuEew8GsL.uDZAzmkG"], ["created_at", "2019-12-12 00:25:49.784681"], ["updated_at", "2019-12-12 00:25:49.784681"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.798024"], ["last_sign_in_at", "2019-12-12 00:25:49.798024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.798849"], ["id", 2233]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2233], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.812728"], ["updated_at", "2019-12-12 00:25:49.812728"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.815362"], ["updated_at", "2019-12-12 00:25:49.815362"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2233], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$GEXc/I8wQ.FTg2Wg4AT28uT6zZOve/8LBg/7f2vzsrlbVeMrpO6RC"], ["created_at", "2019-12-12 00:25:49.844800"], ["updated_at", "2019-12-12 00:25:49.844800"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.858712"], ["last_sign_in_at", "2019-12-12 00:25:49.858712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.859327"], ["id", 2234]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2234], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:25:49.876423"], ["updated_at", "2019-12-12 00:25:49.876423"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:25:49.878352"], ["updated_at", "2019-12-12 00:25:49.878352"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2234], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$1yskuLdbPoEq/8T4kgyVIOobgWGQUfc44RJpwUMs5lcXNDKal36s6"], ["created_at", "2019-12-12 00:25:49.908435"], ["updated_at", "2019-12-12 00:25:49.908435"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:49.941507"], ["last_sign_in_at", "2019-12-12 00:25:49.941507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:49.942071"], ["id", 2235]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2235], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-12-11 21:25:49 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.3ms)
Rendered users/registrations/new.html.erb within layouts/application (18.7ms)

Completed 200 OK in 118ms (Views: 117.5ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$PcLGgm.BtyZm1b1RJosh7eBLyXdsqHu0R6Bo0tXHMangqqwOoIMvi"], ["created_at", "2019-12-12 00:25:50.133120"], ["updated_at", "2019-12-12 00:25:50.133120"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:25:50.135049"], ["last_sign_in_at", "2019-12-12 00:25:50.135049"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:25:50.135542"], ["id", 2236]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 89ms (ActiveRecord: 2.1ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2236], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$RWig1O3mSTvY3b8GPYOEn.d8BXgu70htrohHFSaWwqoYLbmrhSZTq"], ["created_at", "2019-12-12 00:25:50.238796"], ["updated_at", "2019-12-12 00:25:50.238796"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:25:50.267671"], ["last_sign_in_at", "2019-12-12 00:25:50.267671"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:25:50.268370"], ["id", 2237]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2237], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/users/2237/edit” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"2237"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2237], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 25ms (Views: 23.2ms | ActiveRecord: 0.5ms) Started PUT “/users/2237” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"2237"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2237], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2237], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 2237], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-12-12 00:25:50.341269"], ["id", 2237]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 159ms (ActiveRecord: 1.9ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:25:50 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2237], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.5ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (1.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (2.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (1.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IdqtjnWWd0tnqcO/eenqjOWUBJ6EpL73C5xDJmpLgsNcs9F3Raft6"], ["created_at", "2019-12-12 00:57:19.653574"], ["updated_at", "2019-12-12 00:57:19.653574"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (1.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:19.663346"], ["updated_at", "2019-12-12 00:57:19.663346"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2238], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered appointments/my_appointments.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 176ms (Views: 114.0ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.9ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Y8URPu6UW8EI6.4GkY7SpuxyXwohomkEA7ya2gFA4LbpQshwXPngW"], ["created_at", "2019-12-12 00:57:19.851420"], ["updated_at", "2019-12-12 00:57:19.851420"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:19.854028"], ["updated_at", "2019-12-12 00:57:19.854028"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.9ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1917], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2239], ["LIMIT", 1]]
SQL (1.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2239], ["room_id", 1917], ["created_at", "2019-12-12 00:57:19.898361"], ["updated_at", "2019-12-12 00:57:19.898361"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2239], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)

Appointment Exists (2.0ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2239], ["id", 1059], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$P./mt3DVe1wdWGMGulIbGu/QrX6K7F/hPF3GkfgcHMSTsKL8Wl87."], ["created_at", "2019-12-12 00:57:19.917847"], ["updated_at", "2019-12-12 00:57:19.917847"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:19.920417"], ["updated_at", "2019-12-12 00:57:19.920417"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1918], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2240], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2240], ["room_id", 1918], ["created_at", "2019-12-12 00:57:19.924751"], ["updated_at", "2019-12-12 00:57:19.924751"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2240], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)

Appointment Exists (0.4ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2240], ["id", 1060], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hSS389q.5TMQMoSnCm83ceyplyoczeytWDY0diEHE42zWiXMk1HD2"], ["created_at", "2019-12-12 00:57:19.936966"], ["updated_at", "2019-12-12 00:57:19.936966"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:19.939311"], ["updated_at", "2019-12-12 00:57:19.939311"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.5ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1919], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2241], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 3], ["user_id", 2241], ["room_id", 1919], ["created_at", "2019-12-12 00:57:19.944340"], ["updated_at", "2019-12-12 00:57:19.944340"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2241], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Rendered appointments/my_appointments.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)

Appointment Exists (0.4ms)  SELECT  1 AS one FROM "appointments" WHERE "appointments"."user_id" = $1 AND "appointments"."id" = $2 LIMIT $3  [["user_id", 2241], ["id", 1061], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WZvAe45DAGjUmDkjksX6VugwhSWxPgqTUM/biaNlDssGSTIexm8Za"], ["created_at", "2019-12-12 00:57:19.957625"], ["updated_at", "2019-12-12 00:57:19.957625"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:19.960719"], ["updated_at", "2019-12-12 00:57:19.960719"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1920"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1920], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1920')
Rendering rooms_available/show.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered rooms_available/show.html.erb within layouts/application (0.2ms)

Completed 200 OK in 110ms (Views: 76.0ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BikNwEswgJXmcwNdL7SOQOprh/eN7OzeXi5XivoBU5V07ttGoSRdO"], ["created_at", "2019-12-12 00:57:20.079777"], ["updated_at", "2019-12-12 00:57:20.079777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.082236"], ["updated_at", "2019-12-12 00:57:20.082236"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1921], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2243], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2243], ["room_id", 1921], ["created_at", "2019-12-12 00:57:20.086643"], ["updated_at", "2019-12-12 00:57:20.086643"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1921"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1921], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1921')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wKuDSshyytW2gGTX7CEd/.kHDiUSVIsuhAfh4Tzd9bZJWx08MK5l2"], ["created_at", "2019-12-12 00:57:20.098267"], ["updated_at", "2019-12-12 00:57:20.098267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.100658"], ["updated_at", "2019-12-12 00:57:20.100658"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1922], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2244], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2244], ["room_id", 1922], ["created_at", "2019-12-12 00:57:20.104862"], ["updated_at", "2019-12-12 00:57:20.104862"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1922"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1922], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1922')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PtczODYfheEdIrbKcT894utwEMfe4M1qtyD/E2TVuvCXbNVBhsYeq"], ["created_at", "2019-12-12 00:57:20.116873"], ["updated_at", "2019-12-12 00:57:20.116873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.119121"], ["updated_at", "2019-12-12 00:57:20.119121"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1923], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2245], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2245], ["room_id", 1923], ["created_at", "2019-12-12 00:57:20.123665"], ["updated_at", "2019-12-12 00:57:20.123665"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1923"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1923], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1923')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aRWcS8V5/UF7thI2ysjwd.CdPqzoRFg7nlkRdmqjvoJSbYqdz71r2"], ["created_at", "2019-12-12 00:57:20.136342"], ["updated_at", "2019-12-12 00:57:20.136342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.138721"], ["updated_at", "2019-12-12 00:57:20.138721"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1924], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2246], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2246], ["room_id", 1924], ["created_at", "2019-12-12 00:57:20.143394"], ["updated_at", "2019-12-12 00:57:20.143394"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1924"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1924], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1924')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.0ms)

Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN

Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered today_appointments/index.html.erb within layouts/application (0.3ms)

Completed 200 OK in 108ms (Views: 75.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nMNU5Xz.8QoAoCIsk.lM3.FaL8HD/0YNxPKJ.5slgzuG072ib.fN."], ["created_at", "2019-12-12 00:57:20.804126"], ["updated_at", "2019-12-12 00:57:20.804126"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.806504"], ["updated_at", "2019-12-12 00:57:20.806504"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:57:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:20.824491"], ["last_sign_in_at", "2019-12-12 00:57:20.824491"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:20.825139"], ["id", 2247]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1925"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1925], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2247], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2247], ["room_id", 1925], ["created_at", "2019-12-12 00:57:20.833187"], ["updated_at", "2019-12-12 00:57:20.833187"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1925], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ymcv86QAQau7IvUflQq2IedR1fZKCdOLFTap.6V3Qmc2Muss7bGOm"], ["created_at", "2019-12-12 00:57:20.842875"], ["updated_at", "2019-12-12 00:57:20.842875"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.845287"], ["updated_at", "2019-12-12 00:57:20.845287"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:57:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:20.847919"], ["last_sign_in_at", "2019-12-12 00:57:20.847919"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:20.848442"], ["id", 2248]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"1", "room_id"=>"1926"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1926], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2248], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2248], ["room_id", 1926], ["created_at", "2019-12-12 00:57:20.853434"], ["updated_at", "2019-12-12 00:57:20.853434"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fkIDPgeD/wGz0EeFzBwWAepmxMmJANHAe9s8bTwkRBEfuzex6ju1W"], ["created_at", "2019-12-12 00:57:20.862314"], ["updated_at", "2019-12-12 00:57:20.862314"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.864673"], ["updated_at", "2019-12-12 00:57:20.864673"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:57:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:20.867326"], ["last_sign_in_at", "2019-12-12 00:57:20.867326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:20.867897"], ["id", 2249]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1927"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 1927], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UST21x5B.Bqtq6OSbuqXVOxCpVtch4pfozwe6S4r3F/JC0DrmsMJW"], ["created_at", "2019-12-12 00:57:20.876961"], ["updated_at", "2019-12-12 00:57:20.876961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.879322"], ["updated_at", "2019-12-12 00:57:20.879322"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2019-12-11 21:57:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:20.881764"], ["last_sign_in_at", "2019-12-12 00:57:20.881764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:20.882325"], ["id", 2250]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"1", "room_id"=>"1928"}

Redirected to www.example.com/backoffice Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VZmnzso74kHGhoYIQIeSEeDoSOlrkQCAWqqqT1KnUw7APLFTD74qS"], ["created_at", "2019-12-12 00:57:20.892542"], ["updated_at", "2019-12-12 00:57:20.892542"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:20.894910"], ["updated_at", "2019-12-12 00:57:20.894910"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1929], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2251], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2251], ["room_id", 1929], ["created_at", "2019-12-12 00:57:20.898883"], ["updated_at", "2019-12-12 00:57:20.898883"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/1929” for 127.0.0.1 at 2019-12-11 21:57:20 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:20.901364"], ["last_sign_in_at", "2019-12-12 00:57:20.901364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:20.901943"], ["id", 2251]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1929"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1929], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1929')
Rendered appointments/show.html.erb within layouts/application (25.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 496ms (Views: 478.1ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7rIPdQNhWxTNJvCEYlyDX.wLgWtpwb2mf2DUy/EKjJoPjTQCJxK8q"], ["created_at", "2019-12-12 00:57:21.408151"], ["updated_at", "2019-12-12 00:57:21.408151"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.410878"], ["updated_at", "2019-12-12 00:57:21.410878"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1930], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2252], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2252], ["room_id", 1930], ["created_at", "2019-12-12 00:57:21.415280"], ["updated_at", "2019-12-12 00:57:21.415280"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1930], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2252], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2252], ["room_id", 1930], ["created_at", "2019-12-12 00:57:21.419353"], ["updated_at", "2019-12-12 00:57:21.419353"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.421820"], ["last_sign_in_at", "2019-12-12 00:57:21.421820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.422383"], ["id", 2252]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2252]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 22ms (Views: 4.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qNNNWziJ5FglURMJvtKOGeql/gq1iT0mWun9esfdLDm0no8mJxTFK"], ["created_at", "2019-12-12 00:57:21.453135"], ["updated_at", "2019-12-12 00:57:21.453135"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.455552"], ["updated_at", "2019-12-12 00:57:21.455552"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1931], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2253], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2253], ["room_id", 1931], ["created_at", "2019-12-12 00:57:21.459962"], ["updated_at", "2019-12-12 00:57:21.459962"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1931], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2253], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2253], ["room_id", 1931], ["created_at", "2019-12-12 00:57:21.464378"], ["updated_at", "2019-12-12 00:57:21.464378"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.466732"], ["last_sign_in_at", "2019-12-12 00:57:21.466732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.467379"], ["id", 2253]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2253]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$t9rfWIClktxFb/ssxFAcyuIXc8lDM3GZx8KwoNQlQkrDE8NM4Mym2"], ["created_at", "2019-12-12 00:57:21.481551"], ["updated_at", "2019-12-12 00:57:21.481551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.483849"], ["updated_at", "2019-12-12 00:57:21.483849"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1932], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2254], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2254], ["room_id", 1932], ["created_at", "2019-12-12 00:57:21.487919"], ["updated_at", "2019-12-12 00:57:21.487919"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/1073” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.490458"], ["last_sign_in_at", "2019-12-12 00:57:21.490458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.490994"], ["id", 2254]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"1073"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 1073], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 1073]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XmzlzNd/4W0IXrYIJf0jd.anb8K9x0BZgx55KZf0KWRkWSB/km.Eq"], ["created_at", "2019-12-12 00:57:21.505640"], ["updated_at", "2019-12-12 00:57:21.505640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.508169"], ["last_sign_in_at", "2019-12-12 00:57:21.508169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.509053"], ["id", 2255]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 39ms (Views: 19.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mMWGKjGkebihNPWfL0Yh2.LNFrhhzevQl1XwUxJTduHfUwmQ19jEy"], ["created_at", "2019-12-12 00:57:21.559327"], ["updated_at", "2019-12-12 00:57:21.559327"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.562396"], ["updated_at", "2019-12-12 00:57:21.562396"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1933], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2256], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2256], ["room_id", 1933], ["created_at", "2019-12-12 00:57:21.566911"], ["updated_at", "2019-12-12 00:57:21.566911"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1933], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2256], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2256], ["room_id", 1933], ["created_at", "2019-12-12 00:57:21.571080"], ["updated_at", "2019-12-12 00:57:21.571080"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.574599"], ["last_sign_in_at", "2019-12-12 00:57:21.574599"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.575274"], ["id", 2256]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1933], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2256], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2256], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$luA3tKneiDfqEdq6bc5XiuJc53KqcpHmbdOYwPJ.d9oPqe1Aaf1V2"], ["created_at", "2019-12-12 00:57:21.589345"], ["updated_at", "2019-12-12 00:57:21.589345"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.591691"], ["updated_at", "2019-12-12 00:57:21.591691"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1934], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2257], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2257], ["room_id", 1934], ["created_at", "2019-12-12 00:57:21.596508"], ["updated_at", "2019-12-12 00:57:21.596508"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1934], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2257], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2257], ["room_id", 1934], ["created_at", "2019-12-12 00:57:21.600722"], ["updated_at", "2019-12-12 00:57:21.600722"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.603116"], ["last_sign_in_at", "2019-12-12 00:57:21.603116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.603674"], ["id", 2257]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1934], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2257], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2257], ["LIMIT", 1]]
Rendered appointments/conflicting_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hfHX01GKB8I8oWWgyqPzH.mIKcMYsgsSn21ToA4S7n7mz5Rz62VBW"], ["created_at", "2019-12-12 00:57:21.619483"], ["updated_at", "2019-12-12 00:57:21.619483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.621971"], ["updated_at", "2019-12-12 00:57:21.621971"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1935], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2258], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2258], ["room_id", 1935], ["created_at", "2019-12-12 00:57:21.626718"], ["updated_at", "2019-12-12 00:57:21.626718"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1935], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2258], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2258], ["room_id", 1935], ["created_at", "2019-12-12 00:57:21.630924"], ["updated_at", "2019-12-12 00:57:21.630924"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.633467"], ["last_sign_in_at", "2019-12-12 00:57:21.633467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.633988"], ["id", 2258]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$H3INtTInXhufqz1JtiwD8.ZZpPEyUQsiMphvfT8EvkJUk0FMTwMHy"], ["created_at", "2019-12-12 00:57:21.645983"], ["updated_at", "2019-12-12 00:57:21.645983"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.648434"], ["updated_at", "2019-12-12 00:57:21.648434"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1936], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2259], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2259], ["room_id", 1936], ["created_at", "2019-12-12 00:57:21.652473"], ["updated_at", "2019-12-12 00:57:21.652473"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1936], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2259], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 2259], ["room_id", 1936], ["created_at", "2019-12-12 00:57:21.656645"], ["updated_at", "2019-12-12 00:57:21.656645"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.659477"], ["last_sign_in_at", "2019-12-12 00:57:21.659477"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.660094"], ["id", 2259]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EWrR3oglfXnMJ9a87ygSFewL91a73q/QKdkl0.Kz5VLzFGLy.CA/a"], ["created_at", "2019-12-12 00:57:21.674344"], ["updated_at", "2019-12-12 00:57:21.674344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.677478"], ["last_sign_in_at", "2019-12-12 00:57:21.677478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.678074"], ["id", 2260]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (10.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 67ms (Views: 50.2ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xiY0QfYPNt1gkJAbSQeHJ.QKQogIEaTIWYn4awyqOozzylf1sSZWK"], ["created_at", "2019-12-12 00:57:21.757678"], ["updated_at", "2019-12-12 00:57:21.757678"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.760329"], ["last_sign_in_at", "2019-12-12 00:57:21.760329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.760848"], ["id", 2261]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WX/GAr0.9orUtDOBUi37Zu5WhR22nvpzpgzrRCxtvmVylgtw7RE.a"], ["created_at", "2019-12-12 00:57:21.771074"], ["updated_at", "2019-12-12 00:57:21.771074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.773676"], ["last_sign_in_at", "2019-12-12 00:57:21.773676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.774243"], ["id", 2262]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 21ms (Views: 3.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cs2s1FAru35YYtSbROYh0eiOP.Dem.e.17n8pqNGLnXM7xcIGbZ2a"], ["created_at", "2019-12-12 00:57:21.803864"], ["updated_at", "2019-12-12 00:57:21.803864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.806309"], ["last_sign_in_at", "2019-12-12 00:57:21.806309"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.806859"], ["id", 2263]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B5hrYpx43kY3JGdl4h7kw.jhR4Ljy1sDLGt/ssTjsNVLGmNlScroa"], ["created_at", "2019-12-12 00:57:21.836606"], ["updated_at", "2019-12-12 00:57:21.836606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.838929"], ["updated_at", "2019-12-12 00:57:21.838929"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1937” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.841257"], ["last_sign_in_at", "2019-12-12 00:57:21.841257"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.842090"], ["id", 2264]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1937"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1937], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$515yy/Sia7AsgEqyuUF1R.0nZJnXwjPDN1nV8cKNGMqMmye2bC6Ri"], ["created_at", "2019-12-12 00:57:21.871677"], ["updated_at", "2019-12-12 00:57:21.871677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.873934"], ["updated_at", "2019-12-12 00:57:21.873934"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1938” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.876328"], ["last_sign_in_at", "2019-12-12 00:57:21.876328"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.877041"], ["id", 2265]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"1938"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1938], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.887275"], ["updated_at", "2019-12-12 00:57:21.887275"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1939” for 127.0.0.1 at 2019-12-11 21:57:21 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1939"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IM3gmU8fEu6iA3SzgCuae.RlBEieVHK9GsNmwJ6JB6Z.1Q9YEo8Hm"], ["created_at", "2019-12-12 00:57:21.898651"], ["updated_at", "2019-12-12 00:57:21.898651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.900954"], ["updated_at", "2019-12-12 00:57:21.900954"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1940/edit” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.903133"], ["last_sign_in_at", "2019-12-12 00:57:21.903133"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.903730"], ["id", 2266]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1940"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1940], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 22ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v34.Nen/MVAyCm2j2pYaruHv7/szF7tjOCgcjxU4xI3FpfOZjpL5C"], ["created_at", "2019-12-12 00:57:21.934611"], ["updated_at", "2019-12-12 00:57:21.934611"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.937128"], ["updated_at", "2019-12-12 00:57:21.937128"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1941/edit” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.939579"], ["last_sign_in_at", "2019-12-12 00:57:21.939579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.940166"], ["id", 2267]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1941"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1941], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.951345"], ["updated_at", "2019-12-12 00:57:21.951345"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/1942” for 127.0.0.1 at 2019-12-11 21:57:21 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1942"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jA5jtUhycPED06PUY1Aczey2kZbqzLqTPiNBU5c9YyfTzabRerHfa"], ["created_at", "2019-12-12 00:57:21.963969"], ["updated_at", "2019-12-12 00:57:21.963969"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.967051"], ["last_sign_in_at", "2019-12-12 00:57:21.967051"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.967649"], ["id", 2268]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.971213"], ["updated_at", "2019-12-12 00:57:21.971213"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QKfcx1JLdNYNLnVBe4kU7ukCIl6a1y8dNM9rEs1USFNcjN7AMSeJi"], ["created_at", "2019-12-12 00:57:21.980156"], ["updated_at", "2019-12-12 00:57:21.980156"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.982860"], ["last_sign_in_at", "2019-12-12 00:57:21.982860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.983369"], ["id", 2269]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:21.986865"], ["updated_at", "2019-12-12 00:57:21.986865"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BRY9Ze6IQA5hlhuS3ssXdO2QVAmQ9Ldc5Q9/Twj2lfRAYZi1EbGGO"], ["created_at", "2019-12-12 00:57:21.995865"], ["updated_at", "2019-12-12 00:57:21.995865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:21 -0300

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:21.998907"], ["last_sign_in_at", "2019-12-12 00:57:21.998907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:21.999529"], ["id", 2270]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fC5hVggyWQ7A8elkWM5/7u7CMZEssoeQ0ff.BdCv7h3rKiQpZDP8O"], ["created_at", "2019-12-12 00:57:22.011184"], ["updated_at", "2019-12-12 00:57:22.011184"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.013906"], ["last_sign_in_at", "2019-12-12 00:57:22.013906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.014420"], ["id", 2271]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nd2U4Y1bXFb4Ozp5YIdvXuJSt95Lzfn6XCzs85YCObcZaJzPxgLUi"], ["created_at", "2019-12-12 00:57:22.026146"], ["updated_at", "2019-12-12 00:57:22.026146"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.029028"], ["last_sign_in_at", "2019-12-12 00:57:22.029028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.029577"], ["id", 2272]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8YwzfRB5gtNeHUNaDjJPm.VSMPHkoVAfao84kze4z7Ccgn.cRbqSO"], ["created_at", "2019-12-12 00:57:22.040668"], ["updated_at", "2019-12-12 00:57:22.040668"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.043871"], ["updated_at", "2019-12-12 00:57:22.043871"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1945” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.046423"], ["last_sign_in_at", "2019-12-12 00:57:22.046423"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.046937"], ["id", 2273]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1945"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1945], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-12 00:57:22.051080"], ["id", 1945]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1945 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rmXi56PRDhI90eLaeB4YNuJ3NVIfzVedPKdqmu08zJAKXidFLYHsS"], ["created_at", "2019-12-12 00:57:22.060067"], ["updated_at", "2019-12-12 00:57:22.060067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.062574"], ["updated_at", "2019-12-12 00:57:22.062574"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1946” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.065094"], ["last_sign_in_at", "2019-12-12 00:57:22.065094"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.065669"], ["id", 2274]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}, "id"=>"1946"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1946], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2019-12-12 00:57:22.069688"], ["id", 1946]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1946 Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4GMgyz9Wmol69AAjQWA.Ke6aKzruHHEXg6pFDV9Cf6FtxDvhGmmDC"], ["created_at", "2019-12-12 00:57:22.078762"], ["updated_at", "2019-12-12 00:57:22.078762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.081090"], ["updated_at", "2019-12-12 00:57:22.081090"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1947” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.083734"], ["last_sign_in_at", "2019-12-12 00:57:22.083734"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.084280"], ["id", 2275]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1947"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1947], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PYZmilgfZs3NQkAb.Jd/puJfLC/9vE0mNkce0l1yFwGAUUvzRrTj."], ["created_at", "2019-12-12 00:57:22.099646"], ["updated_at", "2019-12-12 00:57:22.099646"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.102038"], ["updated_at", "2019-12-12 00:57:22.102038"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/1948” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.104566"], ["last_sign_in_at", "2019-12-12 00:57:22.104566"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.105139"], ["id", 2276]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location"}, "id"=>"1948"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1948], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
 (0.3ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kvtuoC.MsuqHfF4U7DN9Ret9YPnmktb53UB8Xlxh1Lu9sWrAAUMQG"], ["created_at", "2019-12-12 00:57:22.120955"], ["updated_at", "2019-12-12 00:57:22.120955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.123712"], ["last_sign_in_at", "2019-12-12 00:57:22.123712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.124253"], ["id", 2277]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BPaYkH1Y7FLvarXu2k6me.my.2PkoScvRcb6M8ueb3j5BFI1M3a46"], ["created_at", "2019-12-12 00:57:22.136228"], ["updated_at", "2019-12-12 00:57:22.136228"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.139082"], ["updated_at", "2019-12-12 00:57:22.139082"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1949” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.141111"], ["last_sign_in_at", "2019-12-12 00:57:22.141111"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.141640"], ["id", 2278]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1949"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1949], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1949]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nRLNteyryeHl6kLC9TmHa.EhJtd0CbGsh8.fMFBx3sIYhxkhFuB3."], ["created_at", "2019-12-12 00:57:22.153551"], ["updated_at", "2019-12-12 00:57:22.153551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.155935"], ["updated_at", "2019-12-12 00:57:22.155935"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1950” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.158013"], ["last_sign_in_at", "2019-12-12 00:57:22.158013"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.158914"], ["id", 2279]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1950"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1950], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1950]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cITz0KaPPVSIgNS6LuIQcuNI28oejgGdSsVLDFINzVZmn1iQp3sC6"], ["created_at", "2019-12-12 00:57:22.171816"], ["updated_at", "2019-12-12 00:57:22.171816"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.174535"], ["updated_at", "2019-12-12 00:57:22.174535"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1951” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.176976"], ["last_sign_in_at", "2019-12-12 00:57:22.176976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.177525"], ["id", 2280]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1951"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SdnrNoxk2.ZL/oNYpAs5iOeCafjJTcZxny8TqyeX/.qkKgro2FjeK"], ["created_at", "2019-12-12 00:57:22.187045"], ["updated_at", "2019-12-12 00:57:22.187045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2019-12-12 00:57:22.189366"], ["updated_at", "2019-12-12 00:57:22.189366"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/1952” for 127.0.0.1 at 2019-12-11 21:57:22 -0300

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:22.191464"], ["last_sign_in_at", "2019-12-12 00:57:22.191464"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:22.192243"], ["id", 2281]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1952"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.8ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (1.0ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$VSB5EK/gHHCJBIHE4pLW7u/gBwKs18Iy4pvGZ3egfV84FYpG7bJ2."], ["created_at", "2019-12-12 00:57:46.201763"], ["updated_at", "2019-12-12 00:57:46.201763"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:46 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (49.1ms)
Rendered users/sessions/new.html.erb within layouts/application (345.1ms)

Completed 200 OK in 508ms (Views: 500.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:46 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:46.801577"], ["last_sign_in_at", "2019-12-12 00:57:46.801577"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:46.815172"], ["id", 2282]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 181ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:46 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2282], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 58ms (Views: 37.5ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2282], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#new as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2282], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (5.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 75ms (Views: 46.7ms | ActiveRecord: 2.9ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2282], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.6ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:57:47.139956"], ["updated_at", "2019-12-12 00:57:47.139956"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2282], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.7ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$eKghZD0vCnM9NpB2X3rTRe70xegsLvq3m35aIcTbOXFZi4FOoSS1K"], ["created_at", "2019-12-12 00:57:47.163064"], ["updated_at", "2019-12-12 00:57:47.163064"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:47.184467"], ["last_sign_in_at", "2019-12-12 00:57:47.184467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:47.185502"], ["id", 2283]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2283], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2283], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.5ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#new as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2283], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.4ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon"}, "commit"=>"Criar Sala"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2283], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "BS-1234"], ["location", "Babylon"], ["created_at", "2019-12-12 00:57:47.235910"], ["updated_at", "2019-12-12 00:57:47.235910"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2283], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.4ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.6ms)

Completed 200 OK in 40ms (Views: 22.4ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$07.Mu550NAMaItl5igXXs.dvCeP4EINYSBMilz6weTBGfgDv7snsu"], ["created_at", "2019-12-12 00:57:47.316502"], ["updated_at", "2019-12-12 00:57:47.316502"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.5ms)
Rendered users/sessions/new.html.erb within layouts/application (3.2ms)

Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:47.346670"], ["last_sign_in_at", "2019-12-12 00:57:47.346670"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:47.347312"], ["id", 2284]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2284], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)

 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$dlosy7wNYG46GodflGyXtOogB0oMyZ/0x6tQjHirSPVqp8wAbH63C"], ["created_at", "2019-12-12 00:57:47.381280"], ["updated_at", "2019-12-12 00:57:47.381280"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$XX9lcPw2Y37JXA6wYElG0e9s0IE8BgQw6/veryCuXqD5ehlWq0Ium"], ["created_at", "2019-12-12 00:57:47.430952"], ["updated_at", "2019-12-12 00:57:47.430952"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.4ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:47.460741"], ["last_sign_in_at", "2019-12-12 00:57:47.460741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:47.461769"], ["id", 2286]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2286], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2286], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.4ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)  [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
Rendered today_appointments/index.html.erb within layouts/application (2.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2286], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 81ms (Views: 46.1ms | ActiveRecord: 2.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Y2P9SasH6usA4Qs0x.VT.eG.i/I9IDy0fxlZy5uGXB80FLSE5Uh0O"], ["created_at", "2019-12-12 00:57:47.578980"], ["updated_at", "2019-12-12 00:57:47.578980"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:47.596008"], ["last_sign_in_at", "2019-12-12 00:57:47.596008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:47.596672"], ["id", 2287]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2287], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2287], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#new as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2287], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started POST “/rooms” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"foobar", "location"=>"fooland"}, "commit"=>"Criar Sala"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2287], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "foobar"], ["location", "fooland"], ["created_at", "2019-12-12 00:57:47.634523"], ["updated_at", "2019-12-12 00:57:47.634523"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2287], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2287], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 24ms (Views: 3.9ms | ActiveRecord: 1.0ms) Started GET “/appointments/1955” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1955"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1955], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1955')
Rendered appointments/show.html.erb within layouts/application (11.9ms)
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2287], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 77ms (Views: 53.6ms | ActiveRecord: 1.6ms) Started POST “/appointments.1955” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-11", "start_time"=>"18:00", "commit"=>"Alugar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2287], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1955], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2287], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-11 00:00:00"], ["start_time", "18:00:00"], ["status", 1], ["user_id", 2287], ["room_id", 1955], ["created_at", "2019-12-12 00:57:47.828803"], ["updated_at", "2019-12-12 00:57:47.828803"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 48ms (ActiveRecord: 3.8ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2287], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET “/today_appointments” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by TodayAppointmentsController#index as HTML

Rendering today_appointments/index.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE ("appointments"."appointment_date" BETWEEN $1 AND $2)  [["appointment_date", "2019-12-11 00:00:00"], ["appointment_date", "2019-12-11 23:59:59.999999"]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1955], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2287], ["LIMIT", 1]]
Rendered today_appointments/index.html.erb within layouts/application (3.6ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2287], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 1.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$fhrLNwBB1kcxfXwsNx1lMui9vwjJ2hE6tjHCl.WeYrAGHzkunG7JO"], ["created_at", "2019-12-12 00:57:47.885597"], ["updated_at", "2019-12-12 00:57:47.885597"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (2.0ms)
Rendered users/sessions/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:47.903192"], ["last_sign_in_at", "2019-12-12 00:57:47.903192"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:47.903772"], ["id", 2288]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2288], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.6ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:57:47.915647"], ["updated_at", "2019-12-12 00:57:47.915647"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:47.917587"], ["updated_at", "2019-12-12 00:57:47.917587"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1957], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2288], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2288], ["room_id", 1957], ["created_at", "2019-12-12 00:57:47.926540"], ["updated_at", "2019-12-12 00:57:47.926540"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2288], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1957], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (4.4ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2288], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 26ms (Views: 6.2ms | ActiveRecord: 1.4ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:47 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.7ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2288], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 22ms (Views: 3.5ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$YoFXSbxZyGrIG2UznE.6Qut.BlhTUXiX/XeHH7L29ykEV1Lw.wj1m"], ["created_at", "2019-12-12 00:57:48.004066"], ["updated_at", "2019-12-12 00:57:48.004066"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.7ms)
Rendered users/sessions/new.html.erb within layouts/application (2.8ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.019322"], ["last_sign_in_at", "2019-12-12 00:57:48.019322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.019851"], ["id", 2289]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2289], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:57:48.029436"], ["updated_at", "2019-12-12 00:57:48.029436"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:48.031228"], ["updated_at", "2019-12-12 00:57:48.031228"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1959], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2289], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2289], ["room_id", 1959], ["created_at", "2019-12-12 00:57:48.036280"], ["updated_at", "2019-12-12 00:57:48.036280"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2289], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1959], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (3.0ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2289], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 1.2ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2289], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$vv2ahEnGME1ubo30hpVOz.TZU7mi27jCl5mDG2bveRd3x9iqtgn0e"], ["created_at", "2019-12-12 00:57:48.066530"], ["updated_at", "2019-12-12 00:57:48.066530"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.081209"], ["last_sign_in_at", "2019-12-12 00:57:48.081209"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.081763"], ["id", 2290]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2290], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:57:48.090890"], ["updated_at", "2019-12-12 00:57:48.090890"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:48.092969"], ["updated_at", "2019-12-12 00:57:48.092969"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1961], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2290], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2290], ["room_id", 1961], ["created_at", "2019-12-12 00:57:48.097849"], ["updated_at", "2019-12-12 00:57:48.097849"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2290], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1961], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.8ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2290], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2290], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$YZdA5cpttFkcJc4j8BA6wO/g5NZ.nxgICVIBLhpzhGsVANkdHu6Ga"], ["created_at", "2019-12-12 00:57:48.140748"], ["updated_at", "2019-12-12 00:57:48.140748"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.159774"], ["last_sign_in_at", "2019-12-12 00:57:48.159774"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.160756"], ["id", 2291]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2291], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-133"], ["location", "Pat-133"], ["created_at", "2019-12-12 00:57:48.171531"], ["updated_at", "2019-12-12 00:57:48.171531"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:48.173613"], ["updated_at", "2019-12-12 00:57:48.173613"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1963], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2291], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "16:00:00"], ["status", 1], ["user_id", 2291], ["room_id", 1963], ["created_at", "2019-12-12 00:57:48.180059"], ["updated_at", "2019-12-12 00:57:48.180059"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2291], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1963], ["LIMIT", 1]]
Rendered appointments/all_appointments.html.erb within layouts/application (2.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2291], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 1.0ms) Started GET “/conflicting-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#conflicting_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments"
Rendering appointments/conflicting_appointments.html.erb within layouts/application
Rendered appointments/conflicting_appointments.html.erb within layouts/application (0.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2291], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 1.0ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$o.hGmffre2e9ayRIGkPmm.TK5i40y2bHOyIt.ENd5FoO391fbehji"], ["created_at", "2019-12-12 00:57:48.214015"], ["updated_at", "2019-12-12 00:57:48.214015"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.227677"], ["last_sign_in_at", "2019-12-12 00:57:48.227677"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.228781"], ["id", 2292]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2292], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 21ms (Views: 20.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:48.269471"], ["updated_at", "2019-12-12 00:57:48.269471"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1964], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2292], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2292], ["room_id", 1964], ["created_at", "2019-12-12 00:57:48.274774"], ["updated_at", "2019-12-12 00:57:48.274774"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2292], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2292]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 43ms (Views: 4.6ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/1087” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"1087"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 1087], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 1087]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2292], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$325ngxXd/KKM07hqR22OTeKaza2lTLtDip.wraATxIDCIo7qhnEEK"], ["created_at", "2019-12-12 00:57:48.349216"], ["updated_at", "2019-12-12 00:57:48.349216"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.365722"], ["last_sign_in_at", "2019-12-12 00:57:48.365722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.366643"], ["id", 2293]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2293], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.5ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:48.376970"], ["updated_at", "2019-12-12 00:57:48.376970"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1965], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2293], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2293], ["room_id", 1965], ["created_at", "2019-12-12 00:57:48.383888"], ["updated_at", "2019-12-12 00:57:48.383888"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2293], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2293]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started DELETE “/appointments/1088” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"1088"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 1088], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 1088]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 2ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2293], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$uVKnkdkCWRml6sOqH5EGYuEd6U4fKuHKSjs2Vkkpyq3AgHWOt6guS"], ["created_at", "2019-12-12 00:57:48.419952"], ["updated_at", "2019-12-12 00:57:48.419952"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.439480"], ["last_sign_in_at", "2019-12-12 00:57:48.439480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.440136"], ["id", 2294]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2294], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.5ms)

 (0.4ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:48.460830"], ["updated_at", "2019-12-12 00:57:48.460830"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1966], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2294], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2294], ["room_id", 1966], ["created_at", "2019-12-12 00:57:48.466293"], ["updated_at", "2019-12-12 00:57:48.466293"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2294], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2294]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$WlTP7GacRFImBTG3djKlOuPF7X4GAg/kYp8d0DvwgiUR01OUwPFie"], ["created_at", "2019-12-12 00:57:48.487335"], ["updated_at", "2019-12-12 00:57:48.487335"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.501668"], ["last_sign_in_at", "2019-12-12 00:57:48.501668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.502263"], ["id", 2295]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2295], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2019-12-12 00:57:48.512604"], ["updated_at", "2019-12-12 00:57:48.512604"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1967], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2295], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 2295], ["room_id", 1967], ["created_at", "2019-12-12 00:57:48.518742"], ["updated_at", "2019-12-12 00:57:48.518742"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2295], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 2295]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.7ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HYayH8CFxBptIvxbR7qPjOgPGKl5kkxqtEA2H0zLkiJj/tvSD2s66"], ["created_at", "2019-12-12 00:57:48.545989"], ["updated_at", "2019-12-12 00:57:48.545989"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.560719"], ["last_sign_in_at", "2019-12-12 00:57:48.560719"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.561765"], ["id", 2296]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2296], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:48.575958"], ["updated_at", "2019-12-12 00:57:48.575958"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:48.579034"], ["updated_at", "2019-12-12 00:57:48.579034"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2296], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started GET “/appointments/1968” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1968"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1968], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1968')
Rendered appointments/show.html.erb within layouts/application (2.0ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2296], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 1.3ms) Started POST “/appointments.1968” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2019-12-12", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2296], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1968], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2296], ["LIMIT", 1]]
SQL (6.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 2296], ["room_id", 1968], ["created_at", "2019-12-12 00:57:48.625735"], ["updated_at", "2019-12-12 00:57:48.625735"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 12ms (ActiveRecord: 7.6ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2296], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$FmtAO4zreNrPBfE2GdExueKabZxwjB9K5whOrFVpCAkX01/KlqShK"], ["created_at", "2019-12-12 00:57:48.649202"], ["updated_at", "2019-12-12 00:57:48.649202"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.662749"], ["last_sign_in_at", "2019-12-12 00:57:48.662749"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.663257"], ["id", 2297]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2297], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:48.676164"], ["updated_at", "2019-12-12 00:57:48.676164"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (23.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:48.678795"], ["updated_at", "2019-12-12 00:57:48.678795"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2297], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 1.1ms) Started GET “/appointments/1971” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1971"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1971], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-09' AND room_id = '1971')
Rendered appointments/show.html.erb within layouts/application (1.7ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2297], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 1.3ms) Started POST “/appointments.1971” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Alugar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2297], ["LIMIT", 1]]

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2297], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (3.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$SWmIaB4fWd2qMjFpiM5PQ.0T6BaRfMbj8JfVfhK3AL//5xkBy/A8W"], ["created_at", "2019-12-12 00:57:48.760380"], ["updated_at", "2019-12-12 00:57:48.760380"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.776658"], ["last_sign_in_at", "2019-12-12 00:57:48.776658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.777336"], ["id", 2298]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2298], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:57:48.788397"], ["updated_at", "2019-12-12 00:57:48.788397"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2298], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2298], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.7ms) Started DELETE “/rooms/1972” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"1972"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2298], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1972], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 1972]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2298], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$ZZLOcCUQnukbjlvM/OSeveJbTnTfhfkl/TZzpcK/uaX9JH7c.W.I2"], ["created_at", "2019-12-12 00:57:48.831527"], ["updated_at", "2019-12-12 00:57:48.831527"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2019-12-12 00:57:48.833644"], ["updated_at", "2019-12-12 00:57:48.833644"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.860593"], ["last_sign_in_at", "2019-12-12 00:57:48.860593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.861277"], ["id", 2299]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2299], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2299], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started GET “/rooms/1973/edit” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"1973"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2299], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1973], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 22ms (Views: 3.7ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/1973” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste"}, "commit"=>"Update", "id"=>"1973"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2299], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1973], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "SalaTeste"], ["location", "LocalizacaoTeste"], ["updated_at", "2019-12-12 00:57:48.927631"], ["id", 1973]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/1973 Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET “/rooms/1973” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by RoomsController#show as HTML

Parameters: {"id"=>"1973"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2299], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1973], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 0.7ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.6ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Er3jZukCJb64HNOkgkdfZ.TUuSenFoEJHPryTjuxbQ3dlVCWwsKTC"], ["created_at", "2019-12-12 00:57:48.972699"], ["updated_at", "2019-12-12 00:57:48.972699"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:48.986499"], ["last_sign_in_at", "2019-12-12 00:57:48.986499"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:48.987073"], ["id", 2300]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:48 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2300], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:49.000683"], ["updated_at", "2019-12-12 00:57:49.000683"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:49.002406"], ["updated_at", "2019-12-12 00:57:49.002406"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1975], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2300], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2019-12-12 00:00:00"], ["start_time", "18:00:00"], ["user_id", 2300], ["room_id", 1975], ["created_at", "2019-12-12 00:57:49.011859"], ["updated_at", "2019-12-12 00:57:49.011859"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2300], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.9ms) Started GET “/rooms_available/1974” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1974"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1974], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1974')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.8ms)
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2300], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 64ms (Views: 43.6ms | ActiveRecord: 1.3ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$KLwqwLrVvTPay5oMu1GJA.sivAp0HhgFKP.bo4Y.RKz7x2HKz5pQG"], ["created_at", "2019-12-12 00:57:49.119105"], ["updated_at", "2019-12-12 00:57:49.119105"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:49.134284"], ["last_sign_in_at", "2019-12-12 00:57:49.134284"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:49.134899"], ["id", 2301]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2301], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:49.149575"], ["updated_at", "2019-12-12 00:57:49.149575"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:49.151975"], ["updated_at", "2019-12-12 00:57:49.151975"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsController#index as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2301], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.9ms) Started GET “/rooms_available/1976” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsAvailableController#show as HTML

Parameters: {"id"=>"1976"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1976], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2019-12-11' AND room_id = '1976')
Rendering rooms_available/show.html.erb within layouts/application
Rendered rooms_available/show.html.erb within layouts/application (0.4ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2301], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 1.2ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$RM.WT/iIcAwdVXuf93kZluktRFFOvTzGxfFz6V68jDZ3Jt49C.fUy"], ["created_at", "2019-12-12 00:57:49.201154"], ["updated_at", "2019-12-12 00:57:49.201154"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:49.215269"], ["last_sign_in_at", "2019-12-12 00:57:49.215269"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:49.215882"], ["id", 2302]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2302], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:49.228619"], ["updated_at", "2019-12-12 00:57:49.228619"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:49.230552"], ["updated_at", "2019-12-12 00:57:49.230552"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2302], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$5Q3nGzJa3BzOG.lBIIti9.q34jaaa24U3isoMaKn/nWeb8Vx7hoBq"], ["created_at", "2019-12-12 00:57:49.259987"], ["updated_at", "2019-12-12 00:57:49.259987"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:49.276329"], ["last_sign_in_at", "2019-12-12 00:57:49.276329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:49.277210"], ["id", 2303]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2303], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2019-12-12 00:57:49.296589"], ["updated_at", "2019-12-12 00:57:49.296589"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2019-12-12 00:57:49.299020"], ["updated_at", "2019-12-12 00:57:49.299020"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2303], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.8ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$oLxFX9E.05tdKCD5zHIUbOsryE7pP9/O9FwA1.RZ3fcq4H1jzNJMi"], ["created_at", "2019-12-12 00:57:49.329517"], ["updated_at", "2019-12-12 00:57:49.329517"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:49.355398"], ["last_sign_in_at", "2019-12-12 00:57:49.355398"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:49.356127"], ["id", 2304]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2304], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.4ms)
Rendered users/registrations/new.html.erb within layouts/application (19.7ms)

Completed 200 OK in 123ms (Views: 122.1ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$of3nfQAm1yAgGFyRkFMrBOEKHqHugnLlsoEt9248iSLd.MhOtBFYa"], ["created_at", "2019-12-12 00:57:49.551847"], ["updated_at", "2019-12-12 00:57:49.551847"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2019-12-12 00:57:49.553660"], ["last_sign_in_at", "2019-12-12 00:57:49.553660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2019-12-12 00:57:49.554134"], ["id", 2305]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 89ms (ActiveRecord: 2.0ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2305], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$NQx35r0fmt5F/wWs3Kz0TO8cPD56CxZnI9FRqbfQtOoQXHNx3pJ3."], ["created_at", "2019-12-12 00:57:49.655782"], ["updated_at", "2019-12-12 00:57:49.655782"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2019-12-12 00:57:49.683142"], ["last_sign_in_at", "2019-12-12 00:57:49.683142"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2019-12-12 00:57:49.683738"], ["id", 2306]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2306], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/users/2306/edit” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"2306"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2306], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 25ms (Views: 23.7ms | ActiveRecord: 0.5ms) Started PUT “/users/2306” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"2306"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2306], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 2306], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 2306], ["LIMIT", 1]]
SQL (0.4ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2019-12-12 00:57:49.754100"], ["id", 2306]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 158ms (ActiveRecord: 1.8ms) Started GET “/” for 127.0.0.1 at 2019-12-11 21:57:49 -0300 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 2306], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK